molecalculator

Moles & Molar Mass

Gas Concentration Formula: Calculate Mole Fraction

Calculator No. 01-3762 · Updated · Formula and assumptions shown below

Gas concentration, mole percent 19.74 %
Gas partial pressure
20.00 kPa
= Gas concentration, mole percent × Total pressure ÷ 100
Gas partial pressure
20 kPa
Set in the form below
Total pressure
101.325 kPa
Set in the form below
You enter
Gas partial pressure (kPa), Total pressure (kPa), Gas volume (L), Temperature (°C)
You get
Gas concentration, mole percent (%), Gas partial pressure (kPa)
Rounding
2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

For a gas mixture, concentration is commonly expressed as mole fraction: xi = ni / ntotal, the amount of one gas divided by the total amount of all gases. This calculator uses the ideal-gas law to find each amount from pressure, volume, and temperature, then reports the selected gas’s mole fraction as a percentage and its partial pressure.

Formula

The main result is the gas’s mole percentage:

xi (%) = 100 × pi / P

  • xi is the mole percentage of gas component i, in percent (%).
  • pi is the component’s partial pressure, in kilopascals (kPa).
  • P is the mixture’s total pressure, in kPa.

For an ideal gas mixture, Dalton’s law gives the partial pressure of a component as its mole fraction times total pressure: pi = yiP. Rearranging gives yi = pi/P. The calculator’s second result is the partial pressure calculated back from the entered percentage and total pressure: pi = (xi/100)P.

The ideal-gas equation, PV = nRT, can determine the amount of gas in moles from pressure, volume, and absolute temperature: n = PV/(RT). In a mixture at the same temperature and volume, the gas constant R, volume V, and temperature T cancel in the ratio ni/ntotal. That is why the calculator needs the selected gas’s partial pressure and total pressure to find its concentration; the entered volume and temperature describe the sample but do not change the mole percentage.

Worked Example

Using the calculator’s default inputs: partial pressure p = 20 kPa, total pressure P = 101.325 kPa, volume V = 10 L, and temperature T = 25 °C:

Convert the temperature to kelvin for gas-law calculations: T = 25 + 273.15 = 298.15 K.

The gas concentration as mole percent is:

xi = 100 × 20 / 101.325 = 19.7384656…% ≈ 19.74%.

The corresponding partial pressure is:

pi = (19.7384656… / 100) × 101.325 = 20.000000… kPa ≈ 20.00 kPa.

The sample volume and temperature are not needed for this ratio. To check the amount represented by the whole sample under the ideal-gas assumption, convert total pressure to pascals: 101.325 kPa × 1000 = 101325 Pa. With R = 8.31446261815324 J/(mol·K), n = PV/(RT) = (101325 × 0.010)/(8.31446261815324 × 298.15) ≈ 0.41005 mol. The selected component amount is about 0.197384656 × 0.41005 ≈ 0.08093 mol.

Assumptions

  • The gas mixture is treated as ideal, and Dalton’s law applies.
  • All gas components share the same temperature and occupy the same volume.
  • Pressure inputs are absolute pressures, not gauge pressures.
  • The entered partial pressure cannot exceed total pressure; temperature must be at or above absolute zero.

What Gas Concentration Means

“Gas concentration” does not refer to only one unit or formula. The appropriate expression depends on what is known and what the result is meant to describe. Mole fraction is often useful for comparing mixture composition because it is a ratio: a mole fraction of 0.20 means 20% of the gas molecules, in the ideal-gas model, belong to that component.

  • Mole fraction: yi = ni/ntotal, a dimensionless fraction. Multiply by 100 for mole percent.
  • Partial pressure: pi = yiP, in pressure units. It is the pressure contribution associated with one component under Dalton’s law.
  • Molar concentration: ci = ni/V, usually mol/L or mol/m³. For an ideal gas, ci = pi/(RT), using consistent SI units.
  • Mass concentration: mass per volume, such as g/m³. This requires the gas’s molar mass as well as its molar concentration.
  • Volume percent: for ideal gases at the same temperature and pressure, a component’s volume fraction equals its mole fraction. This equivalence may not hold as a simple measurement convention for every real-gas or sampling situation.

How to Choose the Right Formula

Use mole fraction or mole percent when the question is “what share of this mixture is the gas?” Use partial pressure when pressure contribution matters. Use molar concentration when a quantity per volume is needed, and mass concentration when the result must be expressed as mass per volume.

When amounts of each component are known, calculate the total first:

ntotal = Σnj; yi = ni/Σnj.

For instance, a sample containing 2 mol of one gas and 8 mol of another has a total of 10 mol. The first gas has mole fraction 2/10 = 0.20, or 20%. If instead partial pressures are known, divide the component’s partial pressure by the mixture’s total pressure. The methods agree for an ideal gas mixture.

For molar concentration, use absolute temperature in kelvin and consistent units. The SI form is c = p/(RT), with pressure in Pa, R = 8.31446261815324 J/(mol·K), and concentration in mol/m³. Convert units afterward if needed: 1 m³ = 1000 L. Do not put pressure in kPa into this SI expression without converting it to Pa.

Common Errors and Limits

  • Confusing fraction with percent: 0.20 is a mole fraction; 20% is the same composition expressed as a percentage.
  • Using the wrong pressure: the denominator is the total mixture pressure, while the numerator is the component’s partial pressure. Do not divide by a component pressure or use gauge pressure without converting to absolute pressure.
  • Mixing units: ensure numerator and denominator use the same pressure unit. For PV = nRT, match units to the chosen gas constant and use kelvin.
  • Assuming volume is needed for every concentration: it is needed to calculate an amount or molar concentration, but cancels when calculating a mole fraction from component and total pressure.
  • Overlooking real-gas behavior: at high pressure or under conditions where intermolecular interactions matter, ideal-gas relationships can be inaccurate. More detailed models may use fugacity or compressibility factors.

A physical mixture must have nonnegative component partial pressures, and a component’s partial pressure cannot exceed the total pressure. If the calculated mole percentages of all components do not add to approximately 100%, check whether components were omitted, pressures refer to different conditions, or the values were rounded.

Frequently Asked Questions

What is the formula for gas concentration?
For composition as mole fraction, use yi = ni/ntotal. If partial pressure is known for an ideal mixture, use yi = pi/P; multiply by 100 to get mole percent.

How do I calculate gas concentration from pressure?
Divide the gas’s partial pressure by the total pressure to find mole fraction. For molar concentration instead, use c = p/(RT), with absolute temperature and consistent units.

Is gas volume percent the same as mole percent?
For ideal gases measured at the same temperature and pressure, volume fraction and mole fraction are equal. State the basis and conditions when reporting a value.

Does gas concentration change when pressure changes?
A mixture’s mole fraction can remain constant when it is compressed uniformly, while its partial pressure and molar concentration rise with total pressure at fixed temperature. The answer depends on which concentration measure is meant.

Why must temperature be in kelvin?
The ideal-gas law uses absolute temperature. Celsius has an arbitrary zero point, so it cannot be substituted directly into PV = nRT or c = p/(RT).

For any laboratory or field measurement, follow the applicable method and instrument instructions; calculations do not replace direct measurement or appropriate safety controls.

Related

Formula used
in p | Gas partial pressure | kPa | 20 | 0
in pt | Total pressure | kPa | 101.325 | 0
in v | Gas volume | L | 10 | 0
in t | Temperature | °C | 25 | -273.15
out x | Gas concentration, mole percent | % | 100 * p / pt | 2
out pp | Gas partial pressure | kPa | x * pt / 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →