Air Fuel Ratio Calculator (AFR)

Compute the air-fuel ratio (AFR) and lambda coefficient for any fuel.

Science 7 fuels λ classification Tuner-ready
Rate this calculator · 5.0 (1)

Air-Fuel Ratio

AFR = m_air / m_fuel · λ = AFR / stoich AFR · 7 fuel presets

Instructions — Air Fuel Ratio Calculator (AFR)

1

Pick a fuel

The calculator preloads stoichiometric AFR for gasoline (14.7:1), diesel (14.5:1), LPG (15.5:1), ethanol (9.0:1), methanol (6.4:1), hydrogen (34.3:1), and E85 (9.8:1).

2

Choose a solve mode

AFR from mass when you have air and fuel masses. Lambda from AFR when your wideband O₂ sensor reports AFR. AFR from lambda when you want the target AFR for a known λ.

3

Read the mixture class

λ < 0.98 is rich (more power, more CO and HC), λ ≈ 1.0 is stoichiometric (catalytic converter sweet spot), λ > 1.02 is lean (better economy, more NOx).

Formulas

Mass ratio
$$ \text{AFR} = \frac{m_{air}}{m_{fuel}} $$
The mass of air consumed per unit mass of fuel burned. Gasoline at stoichiometry: 14.7 g air per 1 g fuel.
Lambda (λ)
$$ \lambda = \frac{\text{AFR}_{actual}}{\text{AFR}_{stoich}} $$
Fuel-independent ratio. λ = 1.0 means the mixture is exactly stoichiometric, regardless of fuel.
AFR from lambda
$$ \text{AFR}_{actual} = \lambda \times \text{AFR}_{stoich} $$
Multiply lambda by the fuel's stoichiometric AFR to get the actual mass ratio.

Reference

Lambda 1.0 mass ratios
FuelStoich AFRNotes
Gasoline (petrol)14.7: 1Standard spark-ignition engines
Diesel14.5: 1Compression-ignition; runs lean (18:1–70:1)
LPG (propane)15.5: 1Conversion kits need recalibration
Ethanol (E100)9.0: 1Oxygenated, needs more fuel per kg air
Methanol (M100)6.4: 1Race fuel, high latent heat
E85 (85% ethanol)9.8: 1Flex-fuel vehicles
Hydrogen (H₂)34.3: 1Wide flammability range

Article — Air Fuel Ratio Calculator (AFR)

Air fuel ratio calculator: AFR and lambda for any fuel

The air fuel ratio (AFR) is the mass of air divided by the mass of fuel in a combustion mixture. Gasoline burns cleanly at a stoichiometric AFR of 14.7:1 — 14.7 grams of air for every gram of fuel. Diesel is 14.5:1, LPG 15.5:1, and ethanol just 9.0:1. The lambda coefficient (λ) is the actual AFR divided by the stoichiometric AFR for that fuel, giving a single number that works across all fuels.

This calculator computes AFR from masses, lambda from AFR, or AFR from a target lambda. Seven fuel presets cover gasoline, diesel, LPG, ethanol, methanol, hydrogen, and E85. The mixture class — rich, stoichiometric, or lean — appears beside the result.

What is the air fuel ratio?

The air fuel ratio describes how much air is mixed with each unit mass of fuel before combustion. Get it wrong by a few percent and the consequences are immediate: less power, higher emissions, fouled spark plugs, or even engine damage. Modern engine control units (ECUs) adjust fuel injection thousands of times per minute to hold AFR within a narrow target band.

AFR is always reported by mass, not volume, because mass conserves through combustion while gas volumes change with temperature and pressure. The ratio is dimensionless when you divide kilograms by kilograms, but it is conventionally written as a ratio like 14.7:1.

Stoichiometric AFR and complete combustion

A stoichiometric mixture contains exactly enough air to fully oxidize the fuel. For gasoline, modeled as iso-octane C₈H₁₈, the balanced combustion equation is:

C₈H₁₈ + 12.5 O₂ → 8 CO₂ + 9 H₂O

Converting the moles to masses and accounting for the 21% oxygen content of dry air gives the famous 14.7:1 ratio. Every gasoline engine ECU has this number baked into its software. Other fuels have different stoichiometric points because their carbon-to-hydrogen-to-oxygen ratios differ.

Did you know

The first oxygen sensor for production cars was the Bosch Lambda Sensor, introduced on the 1976 Volvo 240 to meet California emissions law. By measuring residual O₂ in the exhaust, it allowed the ECU to hold lambda within 1% of 1.0 — the precision needed for three-way catalysts to work.

Lambda (λ) and the universal AFR

Lambda is the actual AFR divided by the stoichiometric AFR for the fuel being burned. Because it normalizes against fuel chemistry, λ = 1.0 always means "chemically complete combustion" whether the tank holds gasoline, ethanol, or hydrogen. λ = 0.9 means the mixture is 10% richer than stoichiometric, regardless of fuel.

Wideband oxygen sensors report lambda directly. Stoichiometric AFR varies wildly by fuel, but lambda values around 1.0 mean the same thing to every engine.

AFR values by fuel type

Different fuels have different stoichiometric AFRs because their molecular oxygen content varies. Ethanol (C₂H₅OH) already contains oxygen, so it needs less external air. Hydrogen has no carbon and requires lots of air per unit mass.

Gasoline
14.7: 1
Standard spark-ignition
Ethanol
9.0: 1
Oxygenated fuel

Rich and lean mixtures explained

A rich mixture (λ < 1.0) has more fuel than stoichiometric. It runs cooler, produces more power, and generates more carbon monoxide and unburned hydrocarbons. A lean mixture (λ > 1.0) has more air than stoichiometric — better fuel economy but higher combustion temperatures and elevated NOx emissions.

Tip

For a stock daily driver, the ECU targets λ ≈ 1.0 at cruise (catalyst happy) and λ ≈ 0.85 at full throttle (combustion cool, peak power). The calculator's lambda classification flags which regime you are in.

AFR effect on emissions and power

The three-way catalyst can only reduce NOx and oxidize CO and HC simultaneously inside a tiny window centered on lambda 1.0 (typically λ 0.97–1.03). Outside that window the catalyst fails for one species or another. This is why modern engines spend most of their operating time near stoichiometric — emissions law forces it.

  • λ ≈ 0.85 — peak power for naturally aspirated gasoline
  • λ ≈ 1.0 — emissions sweet spot, catalyst window
  • λ ≈ 1.05 — best fuel economy at steady cruise
  • λ > 1.3 — risks misfire and knock on gasoline
  • λ 2.0–4.0 — typical diesel operating range

AFR targets for engine tuning

Performance tuners deliberately leave the stock AFR map. At wide-open throttle, naturally aspirated builds target λ 0.85–0.90 (about 12.5–13.2:1 on gasoline) for peak power and cylinder cooling. Turbocharged engines run richer — λ 0.75–0.85 — to keep exhaust gas temperatures below the turbine's thermal limit and prevent detonation under boost.

Lean spike kills turbo engines

A momentary lean condition under boost (λ > 1.0 at high load) causes detonation and exhaust gas temperatures above 950 °C. Pistons crack, head gaskets fail, turbines melt. Always run conservatively rich (λ 0.78–0.82) at peak boost until the tune is verified on a dyno.

How modern engines measure AFR

Production cars use narrowband O₂ sensors that effectively switch state at lambda 1.0 — they cannot read AFR precisely, only signal "richer than 1.0" or "leaner than 1.0". The ECU oscillates fuel delivery rapidly across that switch point, keeping the time-averaged lambda within the catalyst window.

Wideband sensors (LSU 4.9, NTK UEGO) deliver actual AFR values from λ 0.65 to λ 2.0+ and feed standalone ECUs, AFR gauges, and dyno cells. They cost more and need a controller but report real numbers, which is essential for tuning anything beyond a stock map.

Mass airflow sensors complement the oxygen sensor by measuring incoming air directly. The MAF reading determines how much fuel to inject for a target AFR; the O₂ sensor confirms whether the actual combustion landed where intended. In closed-loop operation, the ECU adjusts injector pulse width every few milliseconds based on the lambda feedback.

For diesel engines, AFR control works differently. Compression-ignition runs over a wide lambda range (typically 1.5 to 5 or higher) and uses fuel quantity to set load rather than throttling air. Modern diesels use particulate filters and selective catalytic reduction to clean up emissions that an oxidation catalyst alone cannot handle at these lean ratios.

Altitude, ambient temperature, and humidity each affect the effective AFR. Higher altitudes mean less dense air, so a fixed fuel injection becomes effectively richer. Cold starts use deliberately rich mixtures because fuel does not vaporize fully at low temperatures. The calculator's lambda mode normalizes for fuel stoichiometry but does not adjust for these environmental factors — the ECU compensates separately through its MAP and IAT sensor inputs.

Reading an AFR or lambda value from a wideband sensor requires understanding the time response. Sensors react within 100 to 200 milliseconds, but transient AFR excursions during gear shifts or rapid throttle changes can be much shorter. Datalogs from professional dyno cells sample at 100 Hz or higher to capture these transients. The displayed AFR on a gauge is typically smoothed over half a second, hiding fast spikes that may matter for tuning.

Brake-specific fuel consumption (BSFC) ties AFR to engine efficiency. At a given power output, leaner mixtures use less fuel per kilowatt-hour but produce less peak power per unit displacement. The trade-off between economy and power lives in the AFR map, and modern engines change strategy across the operating range — lean at part-load cruise, rich at wide-open throttle, stoichiometric in between for catalyst efficiency.

FAQ

14.7:1 by mass. That means 14.7 grams of air are needed to fully oxidize 1 gram of gasoline (modeled as iso-octane, C₈H₁₈). The ratio comes from the stoichiometry of combustion and the 21% O₂ content of dry air.
Lambda is the actual AFR divided by the stoichiometric AFR for that fuel. λ = 1.0 is stoichiometric, λ < 1.0 is rich (excess fuel), λ > 1.0 is lean (excess air). Wideband O₂ sensors report λ directly.
Rich means more fuel than stoichiometric (λ < 1.0). It makes more power and runs cooler but emits more CO and HC. Lean means less fuel (λ > 1.0) — better fuel economy but higher combustion temperature and more NOx.
Naturally aspirated gasoline: λ 0.85–0.90 (AFR 12.5–13.2:1). Turbocharged: λ 0.75–0.85 (AFR 11.0–12.5:1) to keep cylinder temperatures down and resist detonation. Always confirm against your engine's tuning data.
Ethanol (C₂H₅OH) already contains oxygen, so less external air is needed for full combustion. Stoichiometric AFR is about 9:1. Ethanol also has lower energy density, so injectors must flow more fuel for the same power.
Three-way catalysts only work efficiently in a narrow band around λ = 1.0 (typically 0.97–1.03). Outside this window, the catalyst cannot simultaneously reduce NOx and oxidize CO and HC. ECUs use closed-loop O₂ feedback to stay in band.
AFR is the absolute mass ratio (kg air per kg fuel) and depends on the fuel. Lambda is dimensionless and normalized to that fuel's stoichiometry, so λ = 1.0 always means "chemically complete combustion" no matter what is in the tank.
Diesel engines control power by varying fuel injection rather than throttling air, so they always have excess air. Typical diesel AFR ranges from 18:1 (full load) to 70:1 (idle), giving thermal efficiency around 45% versus 35% for gasoline.