This air–fuel ratio (AFR) calculator helps you quantify how much air is supplied relative to the fuel burned in a combustion process. By entering air and fuel mass, and selecting a fuel type with an associated stoichiometric AFR, the tool computes the actual AFR, the relative mixture strength (lambda, λ), and whether the mixture is rich or lean compared with ideal complete combustion.
The calculator is useful for engine tuners, combustion engineers, emissions specialists, and students who want a quick way to compare mixtures across different fuels such as gasoline, diesel, ethanol, liquefied petroleum gas (LPG), and hydrogen. All calculations are based on mass, not volume, which aligns with how combustion chemistry is typically represented and avoids confusion when comparing very light fuels like hydrogen to heavier liquid fuels.
The air–fuel ratio is the mass of air supplied to the combustion chamber divided by the mass of fuel consumed over the same interval. In engines and burners, AFR is a primary control variable because it governs flame temperature, power output, fuel economy, and exhaust emissions. A higher AFR (more air relative to fuel) is called a lean mixture, while a lower AFR (more fuel relative to air) is called a rich mixture.
In simple algebraic form, the AFR is defined as:
AFR = ma / mf
where:
As long as the mass units are consistent (kg, g, lb, etc.), the ratio is dimensionless. The calculator accepts masses in kilograms by default, but you may use any mass unit as long as you use the same unit for both air and fuel, because the units cancel in the division.
The following relationships are evaluated when you press the calculate button. For clarity, the core AFR equation is also shown in MathML format:
AFR = m_a / m_f
λ = AFR / AFRstoich
φ = 1 / λ
Here, AFRstoich is the stoichiometric air–fuel ratio for the chosen fuel. It is the theoretical ratio that supplies exactly enough oxygen for complete combustion with no leftover fuel or oxygen, assuming ideal mixing and reaction.
Because different fuels have different stoichiometric air requirements, the absolute AFR alone is not always easy to compare across fuels. For this reason, combustion engineers often use lambda (λ) or the closely related equivalence ratio (φ):
In spark-ignition engines (gasoline and similar fuels), lambda is often kept very close to 1.0 under most operating conditions so that the three-way catalytic converter can simultaneously reduce nitrogen oxides (NOx), oxidize carbon monoxide (CO), and burn unburned hydrocarbons (HC). In contrast, diesel engines usually operate significantly lean (lambda > 1) over much of the load range because fuel is injected into already compressed hot air and there is no throttle valve controlling the airflow.
Stoichiometric air–fuel ratios depend on the chemical composition of the fuel and the assumed composition of air (commonly taken as approximately 21% O2 and 79% N2 by volume). Representative mass-based stoichiometric AFR values for the fuels included in the calculator are summarized below.
| Fuel | Chemical formula (approx.) | Stoichiometric AFR (mass basis) | Typical notes |
|---|---|---|---|
| Gasoline | C8H18 | 14.7 | Value for idealized iso-octane; real pump gasoline varies with blend. |
| Diesel | Approx. C12H23 | 14.5 | Representative value; depends on refinery formulation and cetane rating. |
| Ethanol | C2H5OH | 9.0 | Contains oxygen in the molecule, so requires less external O2. |
| LPG (propane-dominated) | Approx. C3H8 | 15.5 | Assumes typical LPG mix; actual value shifts with propane/butane ratio. |
| Hydrogen | H2 | 6.4 | Very low mass-based AFR because hydrogen is extremely light. |
These values are sufficiently accurate for most educational and preliminary design calculations. For regulatory work or detailed engine calibration, consult fuel-specific standards, test data, or manufacturer documentation.
Consider a situation where 3.5 kg of air are supplied to burn 0.2 kg of gasoline. Using the formulas above:
Because λ > 1 (and φ < 1), this is a moderately lean mixture: it uses more air than required for ideal complete combustion. In a gasoline engine, such a mixture tends to reduce fuel consumption but can increase combustion temperatures and NOx emissions if sustained without mitigation.
The calculator typically reports three key outputs based on your entries:
As a rule of thumb for many fuels:
The exact acceptable range depends on the engine or burner design, the presence of aftertreatment systems, and goals such as fuel economy or emissions reduction. For example, high-performance spark-ignition engines may run rich under full load for knock suppression and component cooling, while lean-burn technologies deliberately target lambda values greater than 1.4 for efficiency gains under light load.
The table below summarizes typical qualitative differences between mixtures that are rich, near stoichiometric, or lean. These descriptions are general trends rather than strict rules and may vary by fuel and combustion system.
| Mixture type | Lambda (λ) | Equivalence ratio (φ) | Typical effects |
|---|---|---|---|
| Rich | λ < 1 | φ > 1 | Higher CO and HC emissions, lower excess oxygen, lower peak flame temperature, can increase power output and reduce knock in some engines but wastes fuel. |
| Stoichiometric | λ ≈ 1 | φ ≈ 1 | Balanced conditions for three-way catalytic converters, good compromise between power, efficiency, and emissions; often targeted by modern gasoline engine control systems. |
| Lean | λ > 1 | φ < 1 | Reduced fuel consumption and CO/HC emissions, lower CO2 per unit power, but higher NOx potential and in some cases unstable combustion or misfire at very high lambda. |
The calculations provided by this tool are based on idealized combustion theory and standard reference data. Before applying the results to real hardware or regulatory work, consider the following assumptions and limitations:
For more rigorous work, refer to combustion textbooks, engine manufacturer documentation, or standards from bodies such as SAE International and ISO that define measurement methods and reference fuel properties. The stoichiometric AFR values and explanations in this calculator are periodically reviewed against such sources, but they are not a substitute for official specifications.
To make the most of the calculator, keep these points in mind: