Salinity Gradient Power Calculator
Estimate osmotic blue energy from a freshwater–seawater gradient
Salinity gradient power is one of the most interesting energy ideas in water engineering because it turns a naturally occurring difference in salt concentration into useful work. Where a river meets the sea, freshwater and seawater want to mix. That mixing process increases entropy, and in theory some of that available energy can be captured through membranes in systems such as pressure-retarded osmosis or reverse electrodialysis. This calculator gives a quick first-pass estimate of that opportunity. Instead of asking only whether a site has water, it asks whether the site has a strong enough salinity contrast, enough flow, and enough system efficiency to produce meaningful electrical output.
The result is intentionally simple: it is a theoretical power estimate, not a full plant design. That distinction matters. A screening tool is useful when you want to compare scenarios fast, check whether a river mouth looks promising, or understand how much a change in salinity or flow could matter. It is not the same thing as a membrane procurement study, a pumping energy analysis, or a detailed dispatch model. The value of the calculator is that it turns five understandable inputs into a consistent estimate that you can explain, test, and compare.
What each input means in practical terms
Freshwater salinity is the dissolved salt concentration on the low-salinity side of the system, expressed here in grams per liter. For many rivers this may be close to zero, but in estuaries, drought periods, or brackish inland waters it can be several grams per liter. A lower freshwater salinity usually increases the gradient and therefore increases theoretical power.
Seawater salinity is the dissolved salt concentration on the high-salinity side, also in grams per liter. Open ocean seawater is often around 35 g/L, but local conditions can shift that number up or down. If the seawater value falls closer to the freshwater value, the osmotic driving force drops. The calculator requires seawater salinity to be greater than freshwater salinity because without that difference there is no positive salinity gradient to harvest.
Temperature enters because osmotic pressure depends on absolute temperature. Warmer water generally increases the ideal osmotic pressure for the same concentration difference. The effect is real but usually smaller than the effect of a big change in salinity or flow. Temperature is entered in degrees Celsius, and the script converts it to kelvin internally.
Flow rate is the volumetric water throughput of the process in cubic meters per second. This is the scale variable. If the salinity difference tells you how much pressure is available per unit volume, flow tells you how much volume passes through the system each second. In a simplified model, doubling flow doubles theoretical power.
System efficiency is a catch-all factor from 0 to 1 that accounts for the fact that real devices do not convert the full theoretical osmotic energy into electricity. A value of 0.45 means 45 percent of the ideal hydraulic or electrochemical opportunity is recovered as useful power in the simplified estimate. This is where you can be conservative if you are using the calculator as an early-stage screening tool.
How the calculator computes the estimate
The page uses a familiar ideal-solution approximation. First it converts salinity in grams per liter into an approximate molar concentration in moles per cubic meter by dividing by the molar mass of sodium chloride, 58.44 g/mol, and then converting liters to cubic meters. That is not a perfect description of natural seawater chemistry, but it is a reasonable first approximation for a simple educational calculator.
Next it estimates the osmotic pressure difference between the two streams. In words, the bigger the concentration gap and the warmer the water, the larger the theoretical pressure difference across the membrane. Finally it multiplies that pressure difference by flow rate and efficiency to estimate recoverable power. The two domain-specific equations used by the script are shown below.
Here, R is the gas constant, T is absolute temperature in kelvin, C values are the approximate molar concentrations of the two streams, η is efficiency, and Q is flow rate. Power is reported in kilowatts after converting from watts. Because the formula is linear in both flow and efficiency, those two inputs are especially easy to reason about: if one goes up by 10 percent while everything else stays fixed, the output also rises by about 10 percent.
For readers who like to see the calculator in a more abstract way, the page also keeps the generic mathematical notation below. It is the same basic idea expressed in general form: a result is a function of several inputs, and many practical calculators are weighted combinations of variables.
On this page those abstract inputs are easy to name: freshwater salinity, seawater salinity, temperature, flow rate, and efficiency. The weighting idea also shows up clearly. Temperature changes the pressure term, while efficiency scales the final result downward to account for real-world losses.
Worked example with realistic numbers
Suppose you are comparing a river mouth to a nearby plant concept and you choose these values: freshwater salinity 0.5 g/L, seawater salinity 35 g/L, temperature 25 °C, flow rate 1.2 m³/s, and system efficiency 0.45. The salinity difference is large, so the model produces a substantial theoretical osmotic pressure difference. When those values are entered into this calculator, the pressure difference comes out to about 1.46 MPa and the estimated recoverable power is about 790.22 kW.
That example is useful for interpretation. First, notice that the pressure difference is reported separately from power. Pressure tells you how strong the salinity gradient is; power tells you how much of that gradient you are turning into output at the chosen flow and efficiency. Second, notice how sensitive the answer is to the freshwater assumption. If the freshwater side becomes more brackish, the gradient shrinks and the ideal power estimate falls, even if flow and efficiency stay constant.
| Scenario | Fresh salinity | Sea salinity | Flow | Efficiency | Pressure difference | Estimated power |
|---|---|---|---|---|---|---|
| River mouth baseline | 0.5 g/L | 35 g/L | 1.2 m³/s | 0.45 | 1.46 MPa | 790.22 kW |
| Brackish freshwater case | 5 g/L | 35 g/L | 1.2 m³/s | 0.45 | 1.27 MPa | 687.15 kW |
| Larger module, same gradient | 0.5 g/L | 35 g/L | 2.0 m³/s | 0.55 | 1.46 MPa | 1,609.71 kW |
The table is not there to replace the calculator. It is there to show how to reason about it. In the second row only the freshwater salinity is worse, so the pressure difference drops. In the third row the gradient is unchanged but flow and efficiency are higher, so power climbs sharply. That is the kind of scenario testing this tool supports well.
How to read the result without over-trusting it
When the result box says Estimated power, read it as a theoretical recoverable output under the assumptions of this simple model. It is best used as a screening number. If one site gives 200 kW and another gives 900 kW under comparable assumptions, the second site is probably more promising. If the result changes wildly when you adjust a single uncertain input, that uncertainty deserves attention before any real decision is made.
The second line, Osmotic pressure difference, is often the most physically revealing value on the page. It tells you how much thermodynamic push the salinity difference creates. A large pressure difference with very low flow will not produce large power. Likewise, high flow with a weak salinity gradient will not rescue the project. Good blue-energy concepts usually need both a meaningful gradient and enough throughput.
The third line, Fresh vs. seawater gradient, converts the salinity difference into approximate molar concentration units. That number can help with rough comparisons across studies that present concentration rather than grams per liter. If the molar difference is small, you should expect modest theoretical output no matter how optimistic the efficiency is.
Assumptions and limitations you should keep in mind
This calculator uses sodium chloride as a stand-in for dissolved salts. Natural waters contain a mix of ions, so the real osmotic behavior can differ from a pure NaCl approximation. In addition, real membrane systems face concentration polarization, internal resistance, hydraulic losses, pumping requirements, membrane fouling, pretreatment energy, and temperature-dependent transport behavior. None of those are modeled explicitly here.
That is why a simple result can still be valuable: it clarifies which variables drive the answer most strongly. If the estimate is tiny even under favorable assumptions, you may not need a more complicated study. If the estimate is large, then the next step is not blind confidence. The next step is to ask what losses, capital costs, maintenance issues, or site constraints would reduce the practical output.
For quick sanity checks, remember these rules of thumb. If seawater salinity is not greater than freshwater salinity, the model should not produce power. If flow or efficiency is zero, power should also be zero. If you double flow while holding everything else fixed, the result should double. If the answer does not move in the direction you expect, revisit your inputs before drawing conclusions.
Common questions
Is this only for ocean seawater? No. You can use it for any two streams with a salinity difference, including brine and low-salinity wastewater, as long as you understand that the chemistry approximation is simplified.
Can I use total dissolved solids data? Often yes, if it is already reported in grams per liter and you are comfortable treating it as an NaCl-equivalent concentration for a rough estimate. The result is then a screening value, not a guarantee.
Why include temperature if salinity seems more important? Temperature matters because osmotic pressure scales with absolute temperature, but in many site comparisons salinity difference and flow dominate the practical story. Including temperature still improves consistency and lets you test seasonal changes.
Should efficiency include pump losses? If you want one quick net-style estimate, folding expected losses into efficiency is a reasonable shortcut. Just be clear that the value is a modeling assumption. A low efficiency can sometimes be more honest than an overly optimistic one.
Mini-game: Membrane Balance
This optional arcade mini-game turns the calculator idea into a quick hands-on challenge. You are tuning a membrane system in real time. Keep the valve handle inside the glowing target band to maintain a productive salinity gradient, survive fouling events, and hit cleaning pulses at the right moment. It does not change the calculator result; it simply helps you feel the tradeoff between gradient strength, efficiency, and stable operation.
Objective: keep the membrane tuned while the estuary conditions shift.
Educational takeaway: strong salinity gradients matter most when the membrane stays efficient enough to convert that pressure into power.
