Air–Fuel Ratio Calculator

Calculate AFR, lambda (λ), and mixture richness

This air–fuel ratio calculator turns two measurements—air mass and fuel mass—into the three most common mixture-strength metrics used in combustion work: air–fuel ratio (AFR), lambda (λ), and equivalence ratio (φ). It also provides a plain-language classification so you can quickly tell whether the mixture is rich, near stoichiometric, or lean.

The tool is intentionally mass-based. If your air and fuel values are measured over the same interval (for example, one engine cycle window, one second of data logging, or one batch in a burner test), the ratios are meaningful regardless of whether you use kilograms, grams, or pounds—just keep the units consistent.

When this calculator is useful

AFR and λ show up in many practical contexts: tuning spark-ignition engines, checking a wideband oxygen sensor reading against a target, validating injector scaling, estimating mixture strength in a lab combustor, or sanity-checking a mass-balance model. If you already have air and fuel mass (or mass-equivalent) numbers, this page gives you a quick, transparent conversion into the terms most people discuss.

If you only have volumetric flow (for example L/min of air and mL/min of fuel), you can still use the calculator after converting to mass using density. For gases, density depends strongly on temperature and pressure; for liquids, density varies with blend and temperature. The calculator does not perform those conversions automatically, but the formulas below explain what you need.

How to use the calculator (practical steps)

  1. Select a fuel to load its stoichiometric AFR reference (AFRstoich).
  2. Enter air mass and fuel mass measured over the same time window or batch.
  3. Press Calculate to compute AFR, λ, and φ.
  4. Read the classification: λ > 1 is lean, λ < 1 is rich, and λ ≈ 1 is near stoichiometric.

Definitions and formulas used

The calculator uses standard definitions that are common in engine calibration, emissions work, and combustion engineering. The key idea is that stoichiometric is a fuel-specific reference point.

  • Air–fuel ratio (AFR): AFR = m_a / m_f, where m_a is air mass and m_f is fuel mass.
  • Lambda (λ): λ = AFR / AFR_stoich. This normalizes AFR to the selected fuel’s stoichiometric AFR.
  • Equivalence ratio (φ): φ = 1 / λ. This is often used in combustion literature; φ > 1 is rich, φ < 1 is lean.

Interpretation tip: AFR is intuitive but fuel-dependent; λ is comparable across fuels because λ = 1 always means stoichiometric for that fuel. That is why many ECUs and wideband controllers report λ internally even if the dashboard shows AFR.

Worked example (with real numbers)

Select Gasoline (AFRstoich = 14.7). Assume you measured 3.5 kg of air and 0.2 kg of fuel over the same interval.

  1. AFR = 3.5 / 0.2 = 17.5
  2. λ = 17.5 / 14.7 ≈ 1.19
  3. φ = 1 / 1.19 ≈ 0.84

Because λ > 1, the mixture is lean (more air than stoichiometric). In spark-ignition engines, lean mixtures can improve efficiency but may increase misfire risk and NOx depending on strategy. In diesel engines, mixtures are typically lean overall, and λ mainly indicates how much excess air is available.

Stoichiometric AFR reference (common fuels)

The dropdown uses representative stoichiometric AFR values. Real fuels vary by blend, oxygen content, and additives, so treat these as practical references. If you are working with a specific blend (for example E10 vs E85, or a particular LPG composition), the true AFRstoich may differ.

Representative stoichiometric air–fuel ratios for common fuels
Fuel Approx. formula AFRstoich (mass) Notes
Gasoline C8H18 14.7 Often referenced to iso-octane; pump gasoline varies by region and season.
Diesel ~C12H23 14.5 Representative value; formulation-dependent and can shift with biodiesel content.
Ethanol C2H5OH 9.0 Oxygenated fuel; lower air requirement per unit fuel mass.
LPG (propane-dominated) ~C3H8 15.5 Varies with propane/butane ratio; check supplier composition for precision.
Hydrogen H2 6.4 Low mass-based AFR because hydrogen has very low molecular weight.

Assumptions and limitations (what this model does and does not do)

  • Mass basis only: outputs are computed from mass inputs; the calculator does not convert from volumetric flow, nor does it correct for temperature/pressure effects on gas density.
  • Ideal stoichiometric reference: AFRstoich values are representative. Real-world effective stoichiometry can shift with humidity, EGR dilution, oxygenated fuels, and measurement uncertainty.
  • Average over the interval: if your air/fuel values come from a transient event, the computed λ is an average over that interval. Instantaneous λ can swing faster than your sensors or logging rate.
  • Classification is generic: “rich/lean” is determined from λ relative to 1. Acceptable targets depend on engine/burner design and goals (power, efficiency, emissions, catalyst protection, knock margin, safety).

Practical interpretation guide (what the numbers usually imply)

The same λ can mean different things depending on the application, but the following rules of thumb help you interpret results. These are not tuning instructions; they are context so the calculator output is easier to understand.

Near stoichiometric (λ ≈ 1): This is the reference point for complete combustion under ideal assumptions. In many gasoline vehicles with a three-way catalyst, operation near λ = 1 is important because the catalyst can simultaneously reduce NOx and oxidize CO/HC most effectively when the mixture oscillates tightly around stoichiometric.

Lean (λ > 1): Lean means excess air. Lean mixtures can reduce fuel consumption and CO/HC, but may increase NOx and can become unstable if too lean for the combustion system. In diesel engines and many industrial burners, overall operation is typically lean, and λ is more about available oxygen and smoke margin.

Rich (λ < 1): Rich means excess fuel. Rich mixtures can be used for power enrichment, component cooling, or knock control in some spark-ignition strategies, but they can increase CO/HC and can overheat or damage catalysts if sustained. In burners, rich operation can create soot and CO if mixing is poor.

Common measurement pitfalls (and how to avoid them)

AFR calculations are simple, but the inputs can be tricky. If your result looks wrong, check these common issues:

  • Mismatched time windows: air mass and fuel mass must cover the same interval. Mixing a one-second air estimate with a ten-second fuel total will distort AFR.
  • Unit inconsistency: keep air and fuel in the same mass unit. For example, do not enter air in kilograms and fuel in grams unless you convert one of them.
  • Fuel mass vs fuel volume: if you start from volume (mL, L, gal), convert to mass using density. Ethanol blends and temperature changes can shift density enough to matter.
  • Air mass estimation: MAF sensors, speed-density models, and flow meters each have their own biases. A small air error can move λ noticeably.
  • Stoichiometric mismatch: if you select gasoline but the fuel is actually an ethanol blend, AFRstoich is lower and λ will be misreported. In that case, choose the closest fuel or adjust your inputs accordingly.

Extra examples (quick checks)

These short examples help you sanity-check the direction of the output:

  • Example A (rich gasoline): air = 2.94 kg, fuel = 0.25 kg, gasoline stoich = 14.7 → AFR = 11.76, λ ≈ 0.80, φ ≈ 1.25. This is clearly rich.
  • Example B (stoich ethanol): air = 0.90 kg, fuel = 0.10 kg, ethanol stoich = 9.0 → AFR = 9.0, λ = 1.00, φ = 1.00. Exactly stoichiometric for ethanol.
  • Example C (lean diesel): air = 29 kg, fuel = 1.0 kg, diesel stoich = 14.5 → AFR = 29, λ = 2.00, φ = 0.50. Large excess air.

What the “percent from stoichiometric” line means

The result includes a percent deviation computed from λ: (λ − 1) × 100%. A positive value means lean (more air than stoichiometric). A negative value means rich (less air than stoichiometric). For example, λ = 1.05 is +5.0% lean; λ = 0.95 is −5.0% rich.

About the Mixture Maestro mini-sim

Below the calculator is a short interactive mini-simulation called Mixture Maestro. It is not a physics-grade engine model; it is a quick way to build intuition about how small air or fuel disturbances can move λ rich or lean. The sim uses your selected fuel’s AFRstoich and, if you entered air and fuel masses, it uses them to set a starting bias so the first few seconds feel similar to your current scenario.

If you prefer not to interact, you can ignore the sim entirely—the calculator above remains fully functional. If you do play, the goal is simple: keep λ close to 1 while random “events” push the mixture around. The score rewards stability near stoichiometric and penalizes large excursions.

Air and fuel mass inputs

Selecting a fuel sets the stoichiometric AFR used to compute lambda.

Enter values to compute air-fuel ratio.

Mixture Maestro Run

A 90‑second mini-sim: steer fuel to keep lambda near 1 while random intake gusts, injector hiccups, and altitude shifts push the mixture rich or lean. It uses your selected fuel’s stoichiometric AFR and (when provided) your entered air/fuel masses to set the starting bias.

Stoichiometric AFR 14.7
Current λ 1.00
Combustion Groove x1.0
Heat Score 0
Best Run 0
Time Left 90s

Click to Play

Balance the flame before it coughs. Keep λ near one.

Controls: drag or tap across the dial, W/S or ↑/↓ keys adjust fuel, Space pauses.

Controls, scoring, and accessibility notes

Mixture Maestro is designed to be playable with a pointer (mouse, touch, stylus) and with a keyboard. Drag left or right on the dial to change the fuel command. On a keyboard, use W/S or Arrow Up/Arrow Down to adjust fuel, and press Space to pause or resume. If your system requests reduced motion, the animation noise is reduced to keep the experience comfortable.

The status board above the canvas reports the same values the simulation uses internally: the selected stoichiometric AFR, the current λ, your multiplier, your score, your best score saved in local storage (when available), and the time remaining. The goal is not to memorize a perfect number; it is to practice keeping λ close to 1 while disturbances occur.

If you are using assistive technology, the simulation is optional. The primary calculator output is provided as text in the result region above, which is announced politely when updated.

Embed this calculator

Copy and paste the HTML below to add the Air–Fuel Ratio (AFR) Calculator | AFR, Lambda (λ) & Equivalence Ratio (φ) to your website.