Skip to content

Gas

Result

Calculated result 0.2142857143 Based on the values entered.
↗ Everyday Life

Gas — free online calculator.

Formula

Cost = Gallons × Price/Gallon × Type Multiplier; Cost/Mile = Total / (Gallons × MPG)
  • Gas calculates its result from Type Multiplier, Gallon, Gallons, Price, Total, Mpg. It uses the formula Cost = Gallons × Price/Gallon × Type Multiplier; Cost/Mile = Total / (Gallons × MPG). Change any input to recalculate the result instantly.
  • The main inputs are Type Multiplier, Gallon, Gallons, Price, Total, Mpg. Enter them in the units and format shown in the calculator.
  • Use the units, labels and assumptions shown beside each input so the formula is applied consistently.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: Gas

Inputs
  • Type Multiplier: 2
  • Gallon: 3
  • Gallons: 4
  • Price: 5
  • Total: 6
  • Mpg: 7

Using Type Multiplier = 2, Gallon = 3, Gallons = 4, Price = 5, Total = 6, Mpg = 7, the calculated result is 0.2142857143.

Sample result: Calculating…

Frequently asked questions

What does the Gas calculate?

Gas — free online calculator.

Which values should I enter?

Enter Type Multiplier, Gallon, Gallons, Price, Total, Mpg using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: Cost = Gallons × Price/Gallon × Type Multiplier; Cost/Mile = Total / (Gallons × MPG).

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 7, 2026