Everyday

Fuel Cost Calculator

250 miles at 30 mpg and $3.50 a gallon is $29.17 in gas. Price any one-way or round trip in mpg, L/100 km or km/L, and split the cost between passengers.

get/api/calc/fuel-cost-calculator

Request

  • Base URL: https://calcbright.com
  • URL: https://calcbright.com/api/calc/fuel-cost-calculator
  • Auth: none declared

Query parameters

distancenumber

Trip distance (one way)

distUnit'miles' | 'km'

Distance unit

economynumber

Fuel economy

econUnit'l100' | 'mpg' | 'mpgimp' | 'kml'

Economy unit

pricenumber

Fuel price

priceUnit'gallons' | 'liters' | 'imperial-gallons'

Price per

currency'USD' | 'EUR' | 'GBP' | 'JPY' | 'CAD' | 'AUD' | 'CHF' | 'CNY' | 'INR' | 'PKR' | 'AED' | 'SAR' | 'NZD' | 'SGD' | 'HKD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'TRY' | 'ZAR' | 'BRL' | 'MXN' | 'KRW' | 'THB' | 'MYR' | 'IDR' | 'PHP' | 'BDT' | 'EGP' | 'NGN' | 'KWD' | 'QAR' | 'BHD' | 'OMR' | 'RUB'

Currency

roundTrip'yes' | 'no'

Round trip?

peoplenumber

Split cost between (people)

Response

Calculation result

okboolean
toolstring
namestring
urlstring

Open this link to see the full calculation

inputsobject
summarystring

Plain-text answer

detailsstring
resultobject
errorsobject

Changes

No recorded changes to this operation across all 1 revision of this API.