# Fuel cost calculator > How much will your trip cost in fuel? Work out the fuel and the cost of a trip from distance, consumption and fuel price. Find out how much fuel a trip needs and what it costs from distance, consumption (L/100 km or mpg) and fuel price, and split the cost between passengers. - Page: https://how.box/fuel-cost/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/fuel-cost/?d={d}&du={du}&f={f}&fu={fu}&p={p}&pu={pu}&c={c}&n={n} - `d` (number 0 to 100000): Trip distance in du. Example: `300`. - `du` (km or mi): km or mi. Example: `km`. - `f` (number 0.1 to 1000): Fuel consumption in fu. Example: `6.5`. - `fu` (l_per_100km, km_per_l, mpg_us or mpg_uk): l_per_100km, km_per_l, mpg_us or mpg_uk. Example: `l_per_100km`. - `p` (number 0 to 10000): Fuel price per pu, in major units of c. Example: `1.8`. - `pu` (l, us_gal or imp_gal): l, us_gal or imp_gal. Example: `l`. - `c` (AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XCD, XCG, XDR, XOF, XPF, XSU, YER, ZAR, ZMW, ZWG or ZWL): ISO 4217 denomination; never converts the price. Example: `EUR`. - `n` (whole number 1 to 100): Number of people splitting the cost. Example: `1`. Example answer: https://how.box/fuel-cost/?d=300&du=km&f=6.5&fu=l_per_100km&p=1.8&pu=l&c=EUR&n=1 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `fuel_cost_calculate`: Fuel needed and cost of a trip. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fuel_cost_calculate","arguments":{"distance":300,"distance_unit":"km","consumption":6.5,"consumption_unit":"l_per_100km","price":1.8,"price_unit":"l","currency":"EUR","people":1}}}` - GET: https://how.box/mcp/run/fuel_cost_calculate?distance=300&distance_unit=km&consumption=6.5&consumption_unit=l_per_100km&price=1.8&price_unit=l¤cy=EUR&people=1 ## How it works The fuel a trip needs is the distance times the vehicle's consumption, and the cost is that fuel times the price. The tool first converts every consumption scale to litres per 100 km, so km per litre, miles per US gallon and miles per UK gallon all give the same kind of answer. With L litres per 100 km, a trip of D km needs D × L ÷ 100 litres. Miles per gallon is the other way round: litres per 100 km = 100 × gallon ÷ (mpg × mile). A US gallon is 3.785 411 784 litres, a UK (imperial) gallon 4.546 09 litres and a mile 1.609 344 km (NIST SP 811, appendix B.8). For example, 300 km at 6.5 L/100 km needs 19.5 litres, which costs €35.10 at €1.80 per litre. Real consumption changes with speed, load, weather, traffic and driving style, so use a figure from your own trips. Tolls, parking and wear are not included. The cost is counted in the currency's smallest unit and shared evenly, the leftover units going to different people so the shares add up. ## FAQ **Why are US and UK miles per gallon different?** A UK (imperial) gallon is about 20 % larger than a US gallon, so the same car shows a higher mpg on the UK scale. Pick the scale your figure was measured in. **Which consumption scale should I pick?** The one your figure is in. The tool converts it to litres per 100 km behind the scenes, so the same car gives the same answer on any scale. Changing the scale does not change the number you typed. **Is it a round trip?** The distance is used as entered. For a return journey, enter the total distance there and back. **Does the tool convert currencies?** No. Prices and the result are in the currency you choose. **Does the cost include tolls or parking?** No. It covers fuel only; add tolls, parking and other expenses separately. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)