Make Lye From Salt and Gelatin

Granny's gone and so is her box of ashes for making lye. Here's a modern technique to make high quality lye (Sodium Hydroxide) at home for any number of reasons, including soap making.

We'll be using an electrochemical process called electrolysis in a two chamber apparatus. In one chamber we will put a saturated saltwater solution and a positive electrode. In the other we will put pure water and the negative electrode. The two chambers are separated by a salt bridge composed of gelatin and table salt. While Jello brand gelatin can be used, we will be using Knox unflavored gelatin. The salt bridge allows sodium ions to pass between the two chambers.

NOTE: This is dangerous. Chlorine gas is extremely toxic and hydrogen gas is highly flammable. This should only be done outdoors in a well ventilated area. Avoid breathing the fumes which escape from the chamber.

When current is applied the sodium and chlorine ions are attracted to the negative and positive poles respectively. In the positive chamber the free chlorine combines into chlorine gas which escapes while the sodium ions travel across the salt bridge to the negative electrode. Meanshile in the negative chamber the pure water separates into hydrogen gas and an a hydroxide molecule. The hydrogen gas escapes and the sodium ions from the salt bridge combine with the hydroxide molecules to form Sodium Hydroxide in solution.

This process can be used to produce NaOH solutions of up to 40% or so concentration. This can be further reduced or dried to produce higher concentrations. I believe the "raw" syrup will be sufficient for soap making.

Traditionally the lye syrup made from ashes was boiled down until sufficiently concentration. This was tested using the egg test. If an egg was placed in the solution it should sink up to an area about the size of quarter (between 1/2 and 3/4 of the egg below the surface).

If you want to get all green about it use a solar oven to heat the water for making the saturation solution and use a small solar panel or solar battery charger for the electrolysis.

Step 1: Bill of Materials

Many of these items may seem familiar if you've tried "Make a Microbial Fuel Cell - Part II" as it is the same assembly.

2 1x1x1 PVC Schedule 40 Tee
3 1" PVC Schedule 40 Connector
2 1" PVC Schedule 40 Plug
2 1x1/2 Slip vs FPT threaded adapter
1 /21" PVC Schedule 40 Threaded Cap (Optional)
Clear plastic wrap
Rubber bands
Distilled Water
Plain salt ( not iodized )
4.5-12V Power Supply with leads
Salt Bridge Medium (Pick one)
  • Knox Unflavored Gelatin/Jello brand instant gelatin
  • Hide Glue (powdered not liquid)
  • Agar
Electrodes -
Very nice stainless steel electrodes can be constructed using the reinforcing rods from automotive windshield washers
Alternatively pieces of carbon fiber rod, such as those available from model airplane and hobby shops can be

Step 2: Create the Salt Bridge

The heart, so to speak, of this electrolysis device lies in the salt bridge or membrane that spaerates the cells. Agar is most commonly used but isn't necessarily readily available. However since Agar is a gelatin I thought conventional unflavored gelatin might make a substitute.

This is my least favorite component in this design, although I like its novelty. I would really like to have something at the ends to provide mechanical stability.

To create the salt bridge we will use Knox Unflavored gelatin in place of the more common agar. I have some reservations about the stability of this innovation. My next round will focus on the use of hide glue (dry not liquid) as the binding agent. This will not substantially alter the bridge process.

Start some water to boil, you don't need and actually won't use more than a couple of tablespoons.

Take one of the coupler sections. Place the plastic wrap firmly over one end and secure with a rubber band to form a tight seal. Place the coupler open end up in a bowl.

Take one packet of Knox unflavored gelatin and pour it into the coupling. Fill the rest of the way with salt. Pour this mixture into a dry measuring cup and pour back into the coupling. You'll notice that settling left a little more room. Top off with salt, pour back into the measuring cup and add an extra tablespoon. Mix the dry ingredients thoroughly and pour back into the upright coupler.

When the water is at a strong boil pour a bit into the measuring cup and use this to gently fill the salt bridge. Pour carefully so you don't flush the tube but be generous. The mixture will settle and allow you to "top off" the water, this will disclose air bubbles flushed out and help judge when the bridge is full. Carefully picking it up and examining the bottom can also help make sure that the entire column is saturated.

Allow to stand for a few minutes and pour off any tiny bit of standing water on the top. Then place the bowl in the refrigerator for 3-4 hours.

Step 3: Assemble the Electrodes

Since I'm using the stainless steel electrodes I got from changing my wiper blades. I simply take a dry sponge and using my box cutter I cut off a strip just wide enough to fit into the threaded opening and cut this into approximately thirds. I will use 2 and discard the other.

Using a pair of cutters I clip the notches off the end and cut the remainder approximately in half. The length really isn't significant as long as it reaches will into the chamber and protrudes enough from the top to attach the power source.

Wet the sponge with a little distilled water, push the electrodes through the sponge and its on to the next step.

Step 4: Make the Brine Solution

A saturated solution is one in which the solvent (water) has achieved equilibrium between the dissolved and undissolved solvent. What does that mean? The water has absorbed all of the chemical which it can hold. The hotter the water the more chemical it can hold. So what we're going to do is heat up the water (I suggest 100 degrees but substantially above room temperature will do boiling is definitely not necessary ). and once the water has heated up add some salt and stir until fully dissolved.

Following the steps outlined in Making a Saline or Hydroxide Solution prepare 500 ml (about two cups) of a saturated saline solution using distilled water rather than tap water.

Pour about 500-700 mL of water into a pan, basically you want enough to fill your bottle with a reasonable margin of error (I used about 1 1/2 bottles) and turn up the heat. Once the water has heated up to at least 100 degrees add some salt and stir until fully dissolved.

If you use a kitchen scale measure you can measure out about 100g as a starting point otherwise just pour some in and stir. Repeat this until the salt no longer dissolves and wet salt crystals appear on the bottom of the pan (see picture). There is no particular danger in adding too much but no need to overdo it.

Remove the pan from the heat and allow to cool to room temperature. Some folks filter the solution, I was able to carefully pour off 500 mL of solution into a measuring cup without getting any surplus salt.

Step 5: Assembly and Brine Electrolysis

Now it's time to assemble the unit.

First use the plugs to plug one end of the couples. Make sure the plugs are seated fully, these are the "feet" and the device should be stable.

Next insert the couplers into one end of the "T" connectors as shown. Insert the electrode assembly into the other end to form two chambers.

Now get the salt bridge out of the fridge and insert it to connec the two "T"s to form an H as shown.

Now take a little of the distilled water and verify its pH level. This will be used for comparison.

Now fill one chamber with the saturated salt solution and attach the red lead to the electrode. This is where the salt breaks down to sodium and chlorine gas.

Now fill the other chamber with distilled water and attach the black (negative) lead to the electrode. This is the chamber where the NaOH solution will be produced.

Now connect the red and black leads to the positive and negative terminals respectively. Hydrolysis begins as soon as current begins to flow through the circuit.

From a distance of 4-6 inches a faint swimming pool like smell can be detected.


After some period of time ( depends on the amount of current flowing through the circuit ) the electrolysis is complete. This is indicated by the lack of a chlorine smell ( although there may be a better way ).

Once electrolysis is complete we can validate the results by testing the solution.

Step 6: Testing the Results

I used two separate tests to validate the production of sodium hydroxide, pH analysis and power output from an al-air fuel cell.

The main photo shows the power output from a crude al-air battery. The battery was made by laying a sheet of aluminum in a shallow pan, placing a paper towel ( porous non-conductive layer) and a carbon brush electrode (A Fluval carbon aquarium filter) on top of that.

Carefully pour the remaining NaOH solution over the paper towel making sure it is thoroughly saturated. Attach the negative pole of you voltmeter to the foil and attach the positive pole to the carbon brush.

The device immediately  ramped up to the expected voltage range of 1.4VDC ( actually 1.3 and change ). An al-air battery using saltwater produces a max theoretical voltage of .750 mVDC, the higher voltage validates the presence of sodium hydroxide in the solution.

I also tested the pH of the solution. Unfortunately I had only a swimming pool type kit which measures a limited range. As you can see the distilled water tested as pH neutral as indicated by the yellow color. After electrolysis the pH balance has shifted signficantly to the other end of the scale ( indicated by the deep reddish purple color ). This is significantly darker than the max color indicating the solution is in the expected 12-14 range.

That's it.This design should scale up to using a couple of 1/2 gallon plastic jugs, the salt bridge should be okay and doesn't need to be scaled up. You might want to really, really, really consider agar or animal hyde glue.



    • Sensors Contest

      Sensors Contest
    • Stone Concrete and Cement Contest

      Stone Concrete and Cement Contest
    • Planter Challenge

      Planter Challenge

    40 Discussions


    2 years ago

    I'm having difficulty understanding the part about the batteries? what kind of batteries did you use? How many total volts?


    3 years ago

    I don't know if this is still being monitored, but am wondering if a semi-permeable membrane such as in the following link could be used? Don't know if it would be conductive or filter out the correct particles.


    3 years ago

    nice science project, but, not very practical in a survival situation and nowhere to obtain the list of items in this project. Otherwise, good job!


    3 years ago on Introduction

    So I tried this out and the salt bridge really is...well...crap. It breaks down within a few seconds and makes this a bit useless for pure (or close to it) NaOH production. Have you ever tried or considered trying sodium polyacrylate?? I can't find much on it, though having free floating sodium ions within it's matrix and having a negatively charged stationary phase I figure this would be a great idea; I'm just not sure on how conductive it would be. I'd take some of those super absorbent polymer balls ( and throw it into a tube with salt water and let it expand to block it up.

    1 reply

    Reply 3 years ago on Introduction

    ooooorrrrrr...cut a few layers of the expanded sodium polyacrylate polymer ball? I figure this stuff should be somewhat conductive according to :

    Anything that prevents water from flowing freely between the chambers and is conductive should work. There are a number of designs for single cell systems that rely on the depth of the cell to provide the necessary separation. These are frequently used, for example, in waste treatment designs where the associated losses are offset by expanding the utility of an existing industrial process.


    4 years ago on Introduction

    What material can I use for electrodes? I'm not sure if I have any wind shield wipers handy.


    4 years ago on Introduction

    I'm going to try this the next time I render chicken fat. Once the fat is decanted the remaining liquid is gelatin. I assuming I only have to add salt to it. I'll use the fat to make soap.


    7 years ago on Step 5

    Also, if you use a cell in which the halves are not separate, but the electrodes are as close as possible to each other, the NaOH and Cl produced react with each other to form NaOCl, Sodium Hypochlorite, otherwise known as bleach.


    7 years ago on Step 2

    I love this idea for a salt bridge. Does it noticeably dissolve during the electrolysis? I am currently trying to design some minimum maintenance electrolysis cells for easy personal production of some useful reagents.

    It depends on what your electrodes are made of. Generally baking soda solutions will dissolve the positive electrode to for it's corresponding carbonate and maybe hydroxide. I have done a baking soda electrolysis with copper electrodes once to get CuO. The positive electrode forms a precipitate of copper carbonate and copper hydroxide. The negative forms CuO. I just filter it all, and heat in a beaker until completely dry, then further heat it for a while to decompose the carbonate and hydroxide into CuO. Worked very well.

    I have no theory at all on what alternatives there might be. Be extremely careful in experimenting as dangerous and potentially deadly gases or other undesired by products can occur.

    this is quite an interesting method, but this is an area of expertise i dont fare very well in, id much rather buy my lye, but thats just me, I buy mine from, i figured some of you might like to know. im aware that lye is almost impossible to find locally anymore unless its found online or its made (as you guys are talking about) anyways, i figured id share that tid-bit of info, have a great day.

    1 reply

    I buy mine also. This is part of a larger project intended to explore the use of al-air batteries in parts of the world where scrap aluminum is readily available but a renewable source of NaOH is needed. Everywhere that humans can be found salt is readily available....

    Mike sr

    7 years ago on Introduction

    How about using the white plastic ion exchange membrane that is roled up in a lithium battery. put it pulled over the pvc tube end & slide the coupling over to secure it. might have to sand the pvc end slightly if the fit is too tight with the membrane in the joint to prevent tearing it. might have to seal up the joint with silicone glue to prevent seeping.

    Let me know if anyone tries it. I'm too lazy to experiment.

    2 replies

    You have my undivided attention. Please tell me more about the plastic ion exchange membrane rolled up in a lithium battery.


    Check out this to see the parts in a lithium battery.

    I suspect that the white plastic seperator from the battery is an ion exchange membrane. perhaps this would be a good membrane for a chlorate / lye cell. i'm too lazy to try it. lemme know if anyone does and what the results are.


    8 years ago on Introduction

    So how well does this work? The best info I could find ( ) indicates that there are two main processes used to separate the chlorine and hydroxide sides of the cell. One uses a rather fancy ion exchange membrane that only passes positive ions (Na+), and the other (the asbestos-based version you mention) primarily provides a physical barrier. I can't figure out whether the salt bridge acts as a cation membrane or just a physical barrier.

    The process that uses a physical barrier lets brine be on both sides, and the hydroxide side eventually gets to a point where it is about half&half salt and hydroxide (which you then have to separate.) The membrane version starts with brine only on the chlorine side, but with some hydroxide in the hydroxide side; the hydroxide gets more concentrated and is extracted/re-diluted or something.

    (I also can't tell how much of the process descriptions in the above link are specific to commercial scale production.  Presumably the details have been optimized for continuous large-scale operation, and wouldn't necessarily apply to home-scale production.  For some applications, it may not be necessary to remove the salt, for instance.)

    (Sorry for seemnig to pick on your instructable.  It's an interesting topic!)