ForHosting KIT · Science

Electrolysis gas volume calculator

Passing 96485.3321 coulombs with two electrons per molecule releases 0.5 mol of gas, or 11.2 litres at STP. Enter the charge and the electrons each gas molecule needs and get moles and litres, step by step. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Charge
96,485.3321
Electrons
2
You get
Q
96,485.3321
N e
2
Faraday
96,485.3321
F
96,485.3321

An electrolysis gas volume calculator turns the electric charge that passed through a cell and the number of electrons transferred per gas molecule into the volume of gas evolved at standard conditions. Classroom Faraday problems, water-splitting estimates, and coding kata expected values all need that same charge-to-volume path without opening a full electrochemistry suite.

From electric charge to litres of gas

Faraday's first law of electrolysis ties the amount of gas made at an electrode to the charge that flowed through the cell. You divide the charge in coulombs by the electrons each gas molecule needs times the Faraday constant, about 96485.3321 coulombs per mole of electrons. That gives the moles of gas. Multiply the moles by the molar volume, 22.4 litres per mole at STP by default, and you have the volume. With 96485.3321 coulombs and two electrons per molecule you get 0.5 mol, which is 11.2 litres. Doubling the charge doubles the gas; doubling the electrons per molecule halves it.

The details that change the answer

The number that most often goes wrong is the electrons per molecule: two for hydrogen and four for oxygen in water electrolysis. Use the half-reaction of the gas you are measuring, not the whole cell. If you only know the current and the time, the charge is the current multiplied by the time, Q = I·t. Zero electrons is refused because the division has no answer, and a negative charge is refused because it is not a physical amount. Finally, check which standard state your problem uses, since the molar volume sets the litres you report.

What Faraday’s law means for gas evolved at STP

Faraday’s first law of electrolysis links the amount of substance produced at an electrode to the electric charge that flows through the cell. Once moles are known, the volume at a chosen standard state is moles times the molar volume V_m of an ideal gas at that state. Classroom problems almost always use twenty-two point four litres per mole at standard temperature and pressure, which is the default molar volume in this calculator.

Typical textbook half-reactions include two electrons per H₂ molecule and four electrons per O₂ molecule from water electrolysis, so the same total charge yields twice as many moles of hydrogen as of oxygen—matching the familiar two-to-one volume ratio of the gases. Charge must be non-negative: negative coulombs of “charge passed” is not a physical input for this landing and is rejected.

How is electrolysis gas volume calculated?

Volume at standard conditions is moles times the molar volume V_m (default 22.4 L/mol at STP).

What units should I use for charge?

Coulombs. If you have current in amperes and time in seconds, compute Q = I × t first, then pass charge.

Is the electrolysis gas volume calculator free?

The browser tool is free and runs locally.

Why does water electrolysis give twice as much hydrogen as oxygen?

Each hydrogen molecule needs two electrons and each oxygen molecule needs four. The same charge therefore makes twice as many moles of hydrogen, which is the familiar two-to-one volume ratio of the two gases.

Can I use a molar volume other than 22.4 L/mol?

Yes. The calculator uses 22.4 L/mol at STP unless you set another molar volume for the standard state your course or lab uses. You can also change the Faraday constant if your textbook rounds it differently.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/chem/gas-volume-electrolysis

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/chem/gas-volume-electrolysis \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"charge":96485.3321,"electrons":2}'
{
  "charge": 96485.3321,
  "electrons": 2
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "chem.gas_volume_electrolysis",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_abs1000000000000
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Enter charge Q in coulombs and electrons n_e per molecule—for example two for hydrogen or four for oxygen from water electrolysis—and optionally override the Faraday constant or the molar volume used for standard temperature and pressure. The tool returns moles of gas from Q divided by n_e times F, the STP volume as moles times molar volume, dual-named fields, a readable equation string, and ordered substitution steps so homework checks, lab write-ups, and pipeline tests all see the same deterministic JSON. When electrons is zero the quotient is undefined, so the API returns invalid_input instead of infinity or a silent nonsense volume.

What Faraday’s law means for gas evolved at STP

For a gas molecule that requires n_e electrons in the half-reaction, the moles of gas evolved equal the charge Q in coulombs divided by n_e times the Faraday constant F, where F is about ninety-six thousand four hundred eighty-five coulombs per mole of electrons. Doubling the charge at fixed n_e doubles both moles and volume; doubling n_e at fixed charge halves the moles of that gas species because each molecule costs more electrons. Electrons must be non-zero: a zero n_e would make moles equal Q over zero, which is undefined, and that rejection is the defining error contract of this capability. The check path recomputes Q over n_e F and multiplies by V_m with the same fixed twelve-decimal rounding used for published fields, so a successful response always ships with steps you can assert in tests or worksheets.

How to call the API and what comes back

Send a JSON body with two required finite numbers: charge (aliases Q, charge_passed, coulombs, q) in coulombs, and electrons (aliases n_e, n_electrons, z, electrons_per_molecule, n) as electrons transferred per gas molecule evolved. Optionally include faraday (aliases F, faraday_constant, faradayConstant); when omitted the default ninety-six thousand four hundred eighty-five point three three two one coulombs per mole is used. Optionally include molar_volume (aliases Vm, V_m, stp_molar_volume, molarVolume); when omitted the classroom STP default of twenty-two point four is used. Absolute values must stay within the published limit of one trillion so intermediate products remain finite in IEEE double precision on the Worker and in the browser. Charge must be non-negative; electrons must be non-zero—values whose absolute value is at or below one times ten to the minus fifteen are treated as zero and rejected with a message that zero electrons is not valid for moles equals Q over n_e F; Faraday and molar volume must be strictly positive when provided. On success the response echoes rounded charge, electrons, faraday, and molar_volume under both short and long names, sets moles and moles_of_gas to the Faraday moles, v and volume to the STP volume, formula to the string V equals Q over n_e F times V_m, rearrange and equation to readable identities, message to a short English summary, and steps to an ordered array of substitution lines. Failed validation—missing fields, non-finite numbers, values outside absolute limits, negative charge, zero electrons, or non-positive F or V_m—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item and zero marginal unit price.

Practical tips, limits, and related searches

Prefer sending numbers rather than pre-formatted strings when you control the client; string numbers are accepted only when they match a strict finite numeric pattern. Convert current and time to charge yourself before calling: Q equals I times t when current is constant in amperes and time is in seconds. Match molar volume to the standard state your textbook uses—twenty-two point four litres per mole for classic STP, or about twenty-two point four one four if your course uses a more precise value—so answers line up with the mark scheme. Prefer this capability when charge and electrons per molecule are known and STP volume is the only unknown; if you already have moles of gas, use a gas-volume-from-moles tool instead. Keep inputs inside the published absolute range so Q over n_e F and the product with molar volume cannot overflow into a non-finite volume that the solver must reject. When teaching, pair examples: one Faraday of charge with two electrons per H₂ molecule yields half a mole and eleven point two litres at the default V_m; two Faradays with two electrons yields one mole and twenty-two point four litres; and a deliberate electrons equals zero case demonstrates the hard invalid_input path protecting division by zero. This landing targets people searching for an electrolysis gas volume calculator, Faraday law gas volume, or charge to STP gas volume online; it is not an ideal-gas V equals nRT over P solver from moles, pressure, and temperature, not a stoichiometric mole-ratio gas-volume tool, and not an electrode mass-deposition calculator. Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners deliberately set electrons to zero. Round-trip checks are easy: recompute Q divided by n_e times F by hand, multiply by V_m, and confirm it equals the published volume within the same twelve-decimal rounding, and confirm that doubling charge at fixed n_e doubles volume.

Homework checks for Faraday gas volume

Students enter textbook charge and electrons per molecule, then compare hand-written moles and STP volume against a deterministic JSON result before submitting.

Water electrolysis lab estimates

Lab groups convert measured coulomb totals into expected hydrogen and oxygen volumes at STP for H₂ (n_e=2) and O₂ (n_e=4) half-reactions.

Unit tests for electrochemistry helpers

Generate known-good charge-to-volume cases plus deliberate zero-electrons rejections for coding kata expected values and CI fixtures.

What happens when electrons is zero?

Division by zero is undefined. This tool returns invalid_input instead of infinity or a fabricated volume.

Which n_e value should I use for water electrolysis?

Use 2 for H₂ (2H⁺ + 2e⁻ → H₂) and 4 for O₂ (2H₂O → O₂ + 4H⁺ + 4e⁻). The same total charge yields twice as many moles of hydrogen as of oxygen.

Read the full KIT documentation →