ForHosting KIT · Science

Gas volume at STP calculator

Turn moles of gas into litres at classic STP: 1 mol fills 22.4 L and 2.5 mol fill 56 L at 0 °C and 1 atm, the molar volume used in textbook gas stoichiometry. 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
Moles
1
You get
Volume
22.4 L
Molar volume
22.4
Precision
10
Stp
0 °C (273.15 K), 1 atm; molar volume 22.4 L/mol

This gas volume at STP calculator converts moles of an ideal gas into the volume that sample would occupy at standard temperature and pressure. In general chemistry, classical STP means zero degrees Celsius and one atmosphere, where one mole of ideal gas fills about twenty-two point four litres. The deterministic rule used here is simply V equals n times twenty-two point four litres per mole, so one mole yields twenty-two point four litres and two and a half moles yield fifty-six litres. Zero moles is accepted and returns zero volume; negative mole amounts are rejected because a physical gas amount cannot be negative. The engine uses only finite arithmetic with no network calls, no sampling, and no date-dependent shortcuts.

What the volume at STP tells you

Standard temperature and pressure, often abbreviated STP, is a fixed reference state used so that gas volumes can be compared without also reporting every pressure and temperature on the problem sheet. In the classical definition taught in most introductory chemistry courses, temperature is zero degrees Celsius, which is two hundred seventy-three point one five kelvin, and pressure is one atmosphere.

Under those conditions, and for an ideal gas, the molar volume is taken as twenty-two point four litres per mole, a rounded constant that appears in textbooks, lab manuals, and contest answer keys. Multiplying that molar volume by the amount of gas in moles gives the total volume at STP: V equals n times twenty-two point four. Zero moles with a valid request is allowed and yields zero volume, which is useful when a stoichiometry step produces no gas.

There is no path for arbitrary temperature or pressure, no real-gas compressibility correction, and no automatic conversion from grams unless you already converted mass to moles yourself.

Where STP volume fits in study, lab work, and software

Students meet V equals n times twenty-two point four when a textbook introduces gas stoichiometry, when a homework problem asks how many litres of hydrogen form at STP from a given mole amount, or when a contest problem supplies moles and expects litres without a multi-step ideal-gas law rearrangement. Teachers can pre-generate answer keys for reaction yields reported at STP without trusting opaque calculator apps that silently switch to the one-bar molar volume or mix millilitres with litres.

Lab instructors use the same definition when a protocol reports theoretical gas yield in litres at STP after a mole calculation from a balanced equation. Developers call the same contract from scripts to seed deterministic test vectors for chemistry tutors, to normalize user-entered mole amounts before a lab notebook export, or to satisfy programming-challenge statements that demand STP litres rather than a hand-waved sketch.

Homework and stoichiometry checks

Convert moles of product or reactant gas into litres at classical STP before grading worksheets or checking reaction yields.

Tutoring and teaching software

Normalize user-entered mole amounts into STP volume for interactive lessons and step helpers.

What does the gas volume at STP calculator cost?

It is free in your browser on this page.

How is volume at STP defined here?

V = n × 22.4 L/mol using classical STP (0 °C / 273.15 K and 1 atm). The result is reported in litres.

What happens if moles is negative?

A negative amount of gas is non-physical for volume at STP.

Is zero moles allowed?

Yes. Zero moles yields zero volume at STP, which is useful when a stoichiometry step produces no gas.

Does this use the modern IUPAC STP (1 bar)?

No. This calculator uses the classical teaching constant 22.4 L/mol at 0 °C and 1 atm, not the 1 bar IUPAC molar volume.

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-stp-volume

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-stp-volume \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"moles":1}'
{
  "moles": 1
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "chem.gas_stp_volume",
  "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_abs_value1000000000000000
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 volume at STP means and what the response contains

This calculator returns the validated mole amount, the computed volume in litres, the molar volume constant twenty-two point four, a short STP definition string, the precision used, a method tag gas_stp_volume, a formula reminder, and a unit hint L. The engine either evaluates the product inside the supported numeric range or rejects the input with invalid_input. Rejected cases include a missing moles field, non-finite values, magnitudes above the documented ceiling, and any negative mole amount, because a negative gas quantity is non-physical for this definition.

How moles are read and how results stay reproducible

Optional leading plus signs and scientific notation on numeric strings are allowed when they parse as finite decimals; embedded spaces, hex prefixes, and non-numeric tokens are rejected with a clear message. Document in your own notes that this tool uses the classical one-atmosphere STP definition rather than the one-bar IUPAC convention, so answer keys stay aligned with the textbook your course follows. The preferred field for the amount of gas is moles, but aliases n, mol, amount, and amount_mol are accepted so spreadsheets, query strings, and typed forms can reuse the same contract. Moles must be a finite non-negative number: zero is valid, while any negative value fails with invalid_input and a message that names the field and explains that volume at STP cannot be formed from a negative gas amount, so a bad cell does not become a silent negative litre result. An optional precision field, with aliases decimals and dp, chooses how many decimal places to expose for moles and volume, defaulting to ten and capped at fifteen so JSON goldens stay stable. Pair the free browser run on this page with the priced API when you need the identical mathematical result inside an automated pipeline without re-implementing the STP molar-volume product yourself.

Where STP volume fits in study, lab work, and software

Product and education tools use the endpoint when a learner types moles and the UI must show volume at STP with a clear unit and formula. On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split — free interactive exploration and a priced, identical API — matches the rest of the KIT tier-A catalog and lets you move from a classroom demo to an automated pipeline without changing the mathematical result. Pair it with molar concentration or combined gas law helpers when you need related gas and solution quantities, and with other science endpoints when you are building a small lab of free, deterministic chemistry calculators.

Deterministic test fixtures

Generate reproducible STP volumes for unit tests, chemistry tutors, and CI assertions on V = n × 22.4 L.

Read the full KIT documentation →