ForHosting KIT · Science

Gas volume to moles calculator

22.4 litres of gas at STP is roughly one mole, and 44.8 litres roughly two. Enter the volume in litres and the tool divides it by the molar volume at 0 °C and 1 atm to give you the moles. 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
Volume L
22.4139695446
You get
Volume m3
0.0224139695
Moles
1
Stp temperature K
273.15
Stp pressure Pa
101,325

When a gas is measured at standard temperature and pressure, every litre maps to a fixed fraction of a mole because the molar volume is constant under those conditions. This gas volume to moles calculator takes a volume in litres at classic chemistry STP—zero Celsius and one atmosphere—divides by the ideal-gas molar volume derived from R T over P, and returns the amount of substance in moles. Roughly twenty-two point four litres becomes one mole; forty-four point eight litres becomes two moles; fractional litres scale linearly. Negative volumes are rejected as invalid input because a physical gas sample cannot occupy less than zero space.

How moles follow from volume at standard conditions

Start from the ideal-gas law P V equals n R T. At a fixed standard state the pressure and temperature stop being free variables, so the ratio R T over P becomes a constant molar volume Vm, and the amount of substance collapses to n equals V divided by Vm. This calculator locks classic chemistry STP: absolute temperature two hundred seventy-three point one five kelvin (zero degrees Celsius) and absolute pressure one hundred one thousand three hundred twenty-five pascals (exactly one atmosphere).

With the SI gas constant eight point three one four four six two six one eight joules per mole per kelvin, Vm evaluates to about zero point zero two two four one four cubic metres per mole, or about twenty-two point four one four litres per mole—the number every general-chemistry worksheet quotes. Dividing a measured volume in litres by that molar volume therefore recovers the moles without asking the student to re-enter P and T every time.

The tool does not use the one-bar IUPAC STP revision, does not accept custom pressure or temperature (those belong on a full ideal-gas moles from P V T landing), does not convert mass or grams to moles, and does not apply compressibility factors for real gases. Negative volume fails with invalid input instead of inventing a negative mole count. Zero volume is allowed and cleanly returns zero moles.

Where STP volume-to-moles calculations show up in real work

Secondary-school and first-year university chemistry courses constantly assign problems that state how many litres of gas were collected at STP and ask for the mole count before students learn full ideal-gas rearrangements. Stoichiometry chapters convert measured product gas volume into moles of product using the same V over twenty-two point four shortcut, and teachers need one trusted oracle for answer keys.

Environmental and industrial lab techs often report gas inventory as standard litres or standard cubic metres and need a deterministic conversion into moles for mass-balance sheets before more elaborate ISO standard-condition libraries. Contest and interview warm-ups still hide “how many moles in forty-five litres at STP” under mixture and eudiometry stories, and a hard rejection of negative volume prevents silent garbage.

Keep free-variable moles n equals P V over R T on its own landing when the student already has measured pressure and temperature, and keep molar volume at STP on a separate page when the search intent is volume from a known mole count: those formulas share the gas constant but answer different homework questions and different SEO queries.

Homework and STP answer keys

Convert textbook litre readings of gas at classic chemistry STP into moles so teachers and auto-graders share one ground truth, including negative-volume rejection.

Stoichiometry gas-product moles

Turn collected product volumes into moles for eudiometry, balloon, and cylinder problems before introducing full PV=nRT rearrangements.

What formula does this gas volume to moles calculator use?

Equivalently n = V_L / Vm_stp with Vm_stp ≈ 22.414 L/mol.

What happens if volume_L is negative?

Gas volume cannot be less than zero under the ideal-gas moles-at-STP model.

Is this the same as the gas moles calculator (n = PV/RT)?

No. That tool takes arbitrary pressure, volume and temperature. This tool takes only volume in litres and divides by the fixed STP molar volume—different homework questions and different search intent.

Which STP definition is used—1 atm or 1 bar?

Classic chemistry STP: 0 °C and 1 atm (101325 Pa), which recovers the familiar ~22.4 L/mol. The one-bar IUPAC standard is not used here.

What does it cost?

The browser tool is free and runs locally.

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/volume-to-moles-gas

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/volume-to-moles-gas \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"volume_L":22.4139695446}'
{
  "volume_L": 22.4139695446
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "chem.volume_to_moles_gas",
  "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.

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.

What you send and what you get back

Zero is accepted; negative values fail with a message that volume_L must not be negative. Classic textbook checks include twenty-two point four litres recovering roughly one mole, forty-four point eight litres scaling linearly to about two moles, and a deliberately negative volume that must hard-fail. If you later need moles from arbitrary pressure volume and temperature, volume from moles at STP, or mass density from molar mass, treat those as separate search intents and landings rather than overloading this gas volume to moles calculator page. Send a single required field named volume_L: a finite number for the gas volume in litres at classic chemistry STP. Missing volume_L, empty strings, non-numeric text, NaN, and Infinity all fail with invalid_input and are not charged. On success the response echoes the cleaned volume_L, reports volume_m3 as the SI equivalent, returns moles as the primary result, and documents the fixed STP temperature in kelvin and pressure in pascals together with the SI gas constant. Both molar_volume_m3_per_mol and molar_volume_L_per_mol appear so you can see the twenty-two point four litre figure without converting units by hand. A units map, the formula string n equals V over R times T_stp over P_stp, method volume_to_moles_gas, and a short stp_definition string document the fixed state so clients never guess whether one atmosphere or one bar was used. Pricing for successful API calls is the published base of $0.002 per item; validation failures do not consume prepaid balance.

Where STP volume-to-moles calculations show up in real work

Because this capability is a pure parse engine, API pricing is the published base of $0.002 per successful item and failed validation does not consume balance.

Curriculum widgets and API fixtures

Drive browser demos and CI golden tests from the same isomorphic solver so classroom tools never disagree with backend grading on V / 22.4 L.

Read the full KIT documentation →