U.S. Department of Energy - Energy Efficiency and Renewable Energy

Trip Calculator

Trip vehicles, step 1 of 2. select one or more vehicles..

You can add, edit, and remove vehicles at any time.

You can edit vehicles to personalize the MPG and fuel prices.

Country road

In Step 2, you will enter the trip details including starting point, intermediate stops, and destination.

Enter the Trip

You will be able to modify the route by dragging the route line on the map.

The Trip Vehicles section above will be updated with the cost of fuel for the trip.

Directions and Map

This website is administered by Oak Ridge National Laboratory for the U.S. Department of Energy and the U.S. Environmental Protection Agency.

This website is administered by Oak Ridge National Laboratory for the U.S. DOE and the U.S. EPA.

Fuel Cost Calculator

This calculator can estimate fuel cost according to the distance of a trip, the fuel efficiency of the car, and the price of gas using various units.

Related Gas Mileage Calculator | Mileage Calculator

The price of gas may go up or down, but it's always a major expense for most drivers. The average American driver spends about $3,000 per year on gas, according to the American Automobile Association. Some of the practical ways to reduce fuel costs are listed below.

Use public transportation

Walking or biking does not consume fuel, and as such does not accumulate fuel cost. In most cases, public transport alternatives to cars such as buses, trains, and trolleys are viable options of reducing fuel costs. Due to the communal nature of ride sharing, the fuel costs of operating public transport are generally less than the fuel costs associated with each individual operating their own vehicle. In some places, public transport is free. Considering the costs associated with owning or renting a car creates even more incentive to use other modes of transportation.

Also known as car sharing, carpooling is the arrangement between two or more people to travel to a shared destination in a single vehicle. Although a heavier car consumes slightly more fuel, it is usually much more efficient than two people driving separate cars towards the same destination.

Use a more fuel efficient vehicle

Driving a smaller car makes a great difference – the fuel cost is about half for a small sedan than for a very large SUV. Similarly, drive with a less powerful engine than you need. Don't pay for an eight-cylinder engine when four cylinders work just fine. Unless you're hauling heavy loads on a routine basis, the extra cost of a bigger engine results in more money spent on gasoline.

Tune the engine

A properly tuned engine maximizes power and can greatly enhance fuel efficiency. But tuning the car engine is often done to increase horsepower – that's not the way to save on fuel. Make sure the tuner gets the message.

Fixing a car that is noticeably out of tune or has failed an emissions test can improve its gas mileage by an average of 4 percent – this amount will vary depending on the nature of the repair.

Fixing a serious maintenance problem, such as a faulty oxygen sensor, can improve your mileage by as much as 40 percent.

Placing ornaments and ground effects, aerodynamics kits, and airfoils, such as deck-lid spoilers, may make you feel good, but they also increase the car's drag and make it require more fuel. Such accessories offer no real handling enhancements, although they may look nice on your car. Also, place signs or cargo on the roof so that the object angles forward. This will reduce the frontal area of the object, and it will cause less drag, and cause you to use less fuel.

Adjust tires

Make sure the tires are inflated to the right levels. Properly inflated tires can reduce fuel consumption by up to 3 percent. Your tires also lose about 1 PSI per month, and when the tires are cold (e.g., in the winter), their pressure will decrease due to the thermal contraction of the air. It is recommended to check tires at least monthly, preferably weekly. Having properly inflated tires will also help you avoid uneven wear on the tread.

Gas stations don't always have accurate equipment for this purpose. Sometimes gas stations use automatic air compressors that stop at a pre-determined level. To make sure you inflate to the right level, double-check pressure with your own gauge.

Recommended inflation pressures are for cold tires; put about 3 PSI more in if the tires have been driven on a while. Inflate to the pressure recommended by the car manufacturer, not to the level stamped on the tire.

Use the correct motor oil

Gas mileage will improve by 1 percent to 2 percent if you use the manufacturer's recommended grade of motor oil. For example, using 10W-30 motor oil in an engine designed to use 5W-30 can reduce your gas mileage by a considerable amount. Using 5W-30 in an engine designed for 5W-20 can lower your gas mileage by 1 percent to 2 percent. Also, look for motor oil that says "Energy Conserving" on the API performance symbol to be sure it contains friction-reducing additives.

Plan trips carefully

There is no more obvious way to save gas than to drive a shorter distance.

Plan your route carefully. With today's GPS route planners, it's easy to calculate a straight route with the fewest stops and diversions. It is also possible to judge which route will have the least traffic. Take highways instead of local routes or city streets when possible – the steady speed maximizes fuel efficiency.

When driving in a city, try to park in a central location, and then walk from one appointment to another, or take public transportation. Ragged stop-and-go city driving is terrible for your gas mileage. This also saves the high level of gas used in parking and pulling out in a parking lot.

Factors that determine the fuel price

Government intervention.

Governments may intervene in gasoline (referred to as petrol in some parts of the world) markets by taxation, which may raise prices for consumers within or outside the governmental territory. Similarly, certain industries may receive financial support from the government to promote commercial enterprise (a subsidy). Generally, subsidized products or services can be sold at lower prices.

Financial markets

The global oil price fluctuates constantly. The key crudes quoted are Brent and West Texas Intermediate (WTI) in the unit of US$ per barrel. The retail fuel price is closely related to the global oil price fluctuation.

Political elements such as structure, regime, personnel, and events can all affect the cost of fuel. For instance, a change in leadership from a leader who doesn't believe in climate change to one who does may result in changes to the cost of fuel for consumers based on different policies, such as choosing not to subsidize fuel. Political relationships between countries are also a factor; nations can go to war over resources, or form alliances in order to trade, both of which can affect the cost of fuel.

Geographic area

Certain geographical areas or countries in the world have an abundance of oil, while others do not have a single drop. Regional consumers within close proximity of high supplies of oil are more likely to have lower costs of fuel due to ease of access. Areas without their own supply of oil that are isolated from the rest of the world (such as islands in the Pacific) can find fuel to be relatively expensive.

Natural disaster or weather

Earthquakes, tsunamis, hurricanes, major floods, and other such nature-related phenomena can affect the production, manufacturing, and logistics of gasoline, which can possibly affect the price of fuel. For instance, a snowstorm may close certain roads, disallowing the transportation of the resource and driving up fuel costs in these areas. Hurricanes or earthquakes can damage oil refineries, abruptly halting production, which can also eventually increase fuel costs.

Travelmath

Cost of Driving Calculator

Fuel cost calculator, cost to drive between cities.

Travelmath provides an online driving cost calculator to help you determine how much you'll spend on gas for your next road trip. You can enter airports, cities, states, countries, or zip codes to compute the cost of driving between locations. Driving distances are calculated using actual driving directions if they are available, or a GPS-accurate method for the straight line distance . Automatic estimates are provided for local gas prices and vehicle fuel efficiency in miles per gallon (mpg) or liters per 100 kilometers (L/100 km), based on the make and model of your car, SUV, or minivan. Don't let the economy and rising oil prices stop you from taking your next trip. You can use this tool to find out if it's cheaper to fly or drive to your destination.

Home  ·  About  ·  Terms  ·  Privacy

Travelmath

  • State Gas Price Averages
  • Gas Cost Calculator
  • Fuel Saving Tips
  • Fuel Quality
  • Premium Fuel Research
  • Contact AAA

trip gas usage calculator

Today’s AAA National Average $3.374

Price as of 8/23/24

AAA GAS COST CALCULATOR

Today’s AAA National Average

Please select Starting location and Destination

Please select car Maker, Year and Model or MPG

Results display fuel cost based on today's average.

Fuel Price Data Provided By: Oil Price Information Service (OPIS)

Compare prices

Everyday Calculation

Free calculators and unit converters for general and everyday use.

Calculators » Home & Lifestyle » Trip Calculator

Trip Fuel Cost Calculator

Our online tools will provide quick answers to your calculation and conversion needs. On this page, you can calculate amount of fuel consumed and estimated cost of fuel (gas) for a journey or road trip.

Trip Distance: Mile(s) Kilometer(s)

Fuel Economy: miles per gallon [US] miles per gallon [Imp.] kilometers per liter liters per 100 kilometers gallons [US] per 100 miles

Gas Price: per gallon [US] per gallon [Imp.] per liter

Android: Use this trip fuel calculator offline with our all-in-one calculator app.

Fuel consumption calculation

We calculate the total fuel required to cover the distance with your vehicles fuel economy number and then multiply that with the gas price to find the total fuel cost for the trip.

Select the fuel economy unit used in your country from the options provided viz., miles per gallon (mpg) , kilometers per liter (kmpl) , liters per 100 kilometers and gallons per 100 miles . Our calculator will take care of all conversions required for finding the total fuel consumption and trip cost.

Related Calculators

  • Gas Mileage Calculator
  • Energy Consumption
  • Resistor Color Code

© everydaycalculation.com

Fuel Cost Calculator

Fuel Cost Calculator is a tool to estimate gas costs for your trip. The gas cost calculator is calculated based on the distance in miles or km, miles per gallon, and the gas price per gallon.

Gas Mileage Calculator

The gas mileage calculator is useful for anyone who wants to calculate the costs of driving from one city to another. If you are planning a route trip and is price conscious, then gas costs is definitely something you may want to take into account. The distance, the mileage, and the total fuel costs can add burden to your budget especially if you are travelling long distance. With the rise in gas prices, the cost on fuel can get out of control quickly if you don't plan carefully. At fuel cost calculator, you can use our free gas estimator to help you estimate the total costs on gas and plan accordingly.

How the fuel cost calculator works?

The fuel cost calculator uses the trip distance, miles per gallon, and the current gas price to calculate the total cost when you travel from one location to another. 1. Trip Distance - the distance in miles or kilometers between the two locations. 2. Miles Per Gallon - the number of miles or kilometers that you can travel with 1 gallon of gas. You will travel fewer mileages per gallon when travelling locally, and many more mileages when you are on a highway. The miles per gallon is the average miles that you can travel with one gallon of gas. 3. Gas Price - the current gas price per gallon. With only these 3 inputs, the gas cost calculator will calculate the total costs for you.

How to save money on fuel cost?

There are many ways to save on fuel cost when you are travelling locally and sometimes in long distance. 1. Public Transportation - can sometimes save you money than driving. With driving, you may have to pay toll and stuck in traffic during rush hours. You may also need to pay for parking fees at your destination. With public transportation such as subway, you can often get away with traffic and can do activies that you like during commute such as reading or playing with your phone. If you are someone who does not enjoy driving, taking public transportation may not be a bad option. 2. Carpool - if public transportation is not an option. You can carpool with a coworker if you are driving to work. Carpool allows both of you to save money and having someone to keep you company while driving so you don't get bored. 3. Electric Car - you can also get an electric vehicle like a Tesla to save money on gas costs. With a gas car, you may spend more money on gas than the electricity cost of an electric car. It may be most costly upfront to buy an electric car, but it may save you money in the long run if you are using your car on a daily basis or travelling a lot.

Fuel Cost Table

The fuel cost table shows you the total costs based on your trip distance, price per gallon, and MPG.

Fuel Cost Between Two Addresses

If you are not sure the distance between two addresses, you can serach the fuel cost between two locations with our tool. The tool will return the straight line distance and driving distance between any two locations, and the estimated fuel costs that will take you from one location to the other.

trip gas usage calculator

Fuel Cost Calculator | Terms | Privacy | Disclaimer | Contact

©2024 Fuel Cost Calculator

Gas Calculator

Table of contents

This gas calculator is a handy tool for every driver who, when planning a trip, asks how much gas will I use? We prepared the gas estimator to help you find out how much fuel you will use on a car trip and how much it will cost you.

Our gas cost calculator is versatile and offers more than other web-based fuel cost calculators (e.g., splitting the gas cost). All you need to do is enter the driving distance and the average fuel economy of your car — then all the math is done automatically! In fact, your biggest concern will be how much gas costs at your nearest gas station.

That's not all, though. In the corresponding article, you can find information about gas prices today, gas price history, and gas price increases. Also, check out the best fuel economy cars and how to do eco-drive properly. Finally, a user-friendly tutorial will ensure you're using the gas calculator properly.

How much gas will I use?

Our gas estimator operates on a very simple premise:

Determine the distance you are about to travel. Let's say 295 km .

Find out what's your fuel economy. Let's use 8 l/100 km .

To work out how much fuel you will use in total, divide your distance by 100 (because we are looking at the fuel use every 100 km), so: 295 / 100 = 2.95 and then multiply it by your combustion, so by 8: 2.95 × 8 = 23.6 . Now you know that you will use 23.6 liters of fuel.

If we want to take this one step further and find out how much this trip will cost us:

Determine the price of the fuel. Let's say 1.6 €/L .

To find out the total price, multiply the total amount of fuel you will use by its price, so: 23.6 l × 1.6 €/L = €37.76 .

Now you know how to calculate the fuel use and its cost on your own, or you could use our gas calculator to make it so much easier and faster!

Splitting the gas cost

We finally know the answer to the question: how much gas will I use? However, we often travel with other passengers, so there is no need to pay for gas only by ourselves, we can split the cost among all passengers instead. All those calculations can be working awkward, so to spare you time and effort, our gas calculator can do it for you:

  • Find out the total fuel cost. Let's use the example above of €37.76 .
  • Determine how many people are there. Let's say 4 .
  • Divide the total price by the number of people to work out each person's share: €37.76 / 4 = €9.44 or let our gas estimator do it for you!

Related topics

There is occasionally a situation when you need to convert liters into gallons, be it US gallons or UK gallons. Let's be honest: no one has ever learned to do it by heart, so we always seek out help, mostly online. Our gas calculator has the option of not only choosing whether you want to count liters or gallons but also what is the distance unit — kilometers, miles, etc. However, we encourage you to use our mpg converter for converting between liters and gallons.

You might also find yourself reluctant to drive everywhere. If you're planning to spend some time in a different city, for instance, it might be more economical to use public transport! Take a look at our ticket optimizer to choose the cheapest combination of tickets for your stay.

Cost of gas

Gas cost

Every car user spends money on gas. It is one of the most noticeable vehicle-related expenses. You can drive a car that has old tires, but without a full fuel tank, you will not travel far. So, it is evident that we quickly notice any increase in fuel price. According to the American Automobile Association (AAA) , the average driver spends $3000 on fuel annually.

Gasoline prices are not determined just by the price of crude oil. Let's take a closer look at it. According to the Energy Information Administration (EIA) , the average price of a gallon of regular gas in May 2014 was about $3.67. For the week of June 23, it would set you back $3.70. A French driver would have paid around $7.83, a British one $8.94. In Norway, which produces 1.8 million barrels of oil per day, a gallon of gas reached $9.90.

Gas prices and taxes

According to the EIA data from May 2014, the costs of producing crude oil account for only 65% of the average gas price. The next 12% are taxes (federal, state, and local), and another 11% for distribution and marketing. Refining accounts for about 13% of the gasoline price.

A big part of the gas price is taxes. The U.S. federal government established an 18.4 cents tax on gasoline and 24.4 cents on diesel. Without taxes, a gallon of gasoline is more expensive in the USA than in the U.K. ($3.18) and France ($3.37). There are also local and state taxes to consider. According to the Tax Foundation , if you are buying gas in New York State, you would pay the highest taxes in America (50.6 cents per gallon in 2013). The lowest taxes are in Alaska, where most of America's oil comes from — they are 8 cents.

Gas price history

Below you will find the retail price of regular gasoline in the United States from 1990 to 2017 (in U.S. dollars per gallon) . Check the fluctuations of a gas price over the last seventeen years.

Gas price increase

Gas prices are not stable and tend to fluctuate over time. These variations may be driven by many different factors, e.g., consumer fears over refining capacity. There are also economic factors, for example, a non-stable geopolitical situation (especially near oil-producing nations) or the risk of an oil-supply interruption.

To illustrate this principle, let's go back in time to 2005 when Hurricane Katrina hit much of the refining capacity along the Gulf Coast. Many refineries had to be closed, which caused a decrease in oil supply and, automatically, a high increase in gas prices. That year began with the average monthly gas price at $2.27 and finished at $2.76 but within the general upward trend. In September, there was a peak of up to $3.47 due to fears about the gasoline supply — this is the first time in history that gas prices exceeded the $3 threshold.

Even though the supply met the demand shortly after, gasoline suppliers weren't inclined to lower the prices as their customers got used to new prices. As a result, the price of gasoline has been kept high since the hurricane.

Gas price today

According to the Energy Information Administration , USA produces about 12% of the world's oil, which amounts to 2.7 billion barrels per day . That makes the United States one of the major oil-producing countries, up there with the likes of Saudi Arabia and Russia. However, the U.S. is also one of the biggest consumers of gasoline on a per capita basis, with approximately 1.22 gallons of gas per person daily. Gasoline is often regarded as a key driver of a country's economy. It is the main fuel used in passenger vehicles and the automotive fleets of small and large businesses.

Let's take a look at a worldwide gasoline prices comparison (in U.S. dollars per gallon). The data comes from April 16th, 2018. Fuel prices vary from a few cents to over 7 dollars per gallon. Gas prices in the U.S. were at the level of $2.99, while in Germany, they were considerably higher — $6.43. We can observe that, generally, gas prices in Europe are much higher than in America. Norway is the infamous world leader in gas prices at $7.82 per gallon. This is over 2.6 times more than in the USA and... 261 times more than in Venezuela ($0.03).

Gasoline prices over time

Fuel economy

We all wish we didn't have to spend so much on gas and would like to keep that money in our wallets instead. Check out the tips below if you want to save more money while fueling your car:

Check prices online — nowadays, there are many websites that provide daily updated gas prices in your neighborhood. Spending a little bit of time on an Internet check will allow you to plan a route for a gas stop at the station with the best prices. Try to do it for a month or two, and you will notice which stations consistently offer lower prices, and which tend to raise them.

Stay away from the highway — the stations which are located close to big roads are often the easiest to reach and prompt you their good quality coffee and meals. Keep in mind that probably you will pay more (sometimes much more) just because of the good location of the business.

Small, private stations — are a good alternative. Owners are not affiliated with big brands which take some of the income because of brand recognition. The quality of gas has to be compliant with standards, so you shouldn't be concerned about it.

Plan your purchase — try to avoid the situation when you are forced to fill up by the fuel indicator on your dashboard. You would probably have to stop at the nearest gas station; hopefully not one close to the highway.

Join the club partnership — most gas companies offer club partnerships. Being a club member enables you to recoup some money if you refuel at their gas stations regularly. Usually, you collect points when filling up, and then you can exchange them for discounts or gifts.

gas station

Because of rising fuel prices more and more motorists are conscious of getting the maximum efficiency from their cars. Eco-driving is a way of driving that reduces fuel consumption, gas emissions, and accident rates. This term is the synonym for driving in a smart, smooth, and safe way that leads to an average fuel savings of 5-10% . Keep in mind — good driving is eco-driving .

If you are interested, follow the rules below:

  • Anticipate the traffic flow : Look ahead on the road as far as you can and try to anticipate the flow of traffic. Maintain a larger safety distance from other cars to increase your scope of the traffic. Use this knowledge to get the most out of your vehicle's momentum (in gear or neutral), accelerating and braking smoothly.

🙋 Learn how to estimate traffic flow in the traffic density calculator .

Maintain a steady speed at low RPM : Drive gently, using the highest possible gear at low RPM. Avoid driving at excessive speeds. Try to keep the speed steady and avoid unnecessary braking and acceleration.

Shift up early : Change to a higher gear at around 2000 RPM.

Check tires pressures frequently : Ensure your tires are properly inflated. Low tire pressure is a safety risk and a waste of fuel.

Avoid dead weight and aerodynamic drag : Remove heavy objects that you don't use from your car (for sure you have some). Also, keep windows closed while driving on the motorway — it helps to improve the fuel economy.

Use air-conditioning sparingly : Using the AC unnecessarily is a waste of money because keeping it on increases fuel consumption.

Share your car : One of the best ideas to save money. Just one additional passenger would reduce your trip expenses by 50%.

Best fuel economy cars

“New vehicles offer the latest designs, cutting-edge technologies, and warranties that offer peace of mind, but car owners that like to change vehicles frequently should be thinking about the resale value – not just the purchase price – when choosing their next ride.”
John Nielsen, American Automobile Association's (AAA) managing director of Automotive Engineering and Repair.

The latest annual AAA’s analysis shows a shift in consumers' preferences. We can observe an increased appetite for SUVs cars and pickup trucks and a decreased demand for sedans.

This results in higher car depreciation costs (up to 13% in comparison to last year) for these ex-popular cars. Electric and hybrid vehicles have also increased in their popularity — 20 percent of Americans (15% in the previous year) say they are likely to buy an electric car as their next vehicle. It is not surprising — driving "green" cars is going to be more and more affordable. This is because of the much lower fuel and maintenance charges.

Research conducted by AAA shows the average cost of owning and operating a new vehicle in 2018. The study is based on the cost of fuel, maintenance, repairs, insurance, and taxes. 45 top-selling 2018 model year cars were taken into account across nine categories. The databases on 15,000 miles driven annually.

New cars are attractive to buyers because of the newest technology and electronics inside, various accessories, and a multitude of configuration options. However, they are not the best economical choice for some customers. For those who look for alternatives to new car ownership or ways to minimize operating costs should take a look at the tips below:

Buy a pre-owned car — slightly used vehicle in good condition is an affordable choice. Ownership costs are significantly lower, and the vehicle can still be safe, reliable, and perfect for driving.

Fuel responsibly — avoid wasting money on premium grade gasoline (unless your vehicle requires it) and on tanking up at expensive gas stations (e.g., those near highways).

Take care of your car — in general, spending money on routine maintenance will save you money.

Drive eco — when gas prices rise, small changes in your driving style could make a significant difference to your wallet.

Cars with great gas mileage used to have a reputation for being underpowered and small. However, the latest technologies, from plug-in hybrids to weight-saving measures and new solutions applied to engine construction, helped to change it. Nowadays, it means that nearly any kind of vehicle can be efficient without compromising space, comfort, or fun. Take a look at the top 15 best fuel economy cars:

  • Toyota Prius Prime (2018)
  • Hyundai Ioniq PHEV (2018)
  • Honda Clarity PHEV (2018)
  • Chevrolet Volt (2018)
  • Kia Niro PHEV (2018)
  • Kia Optima PHEV (2018)
  • Hyundai Ioniq Blue (2018)
  • Toyota Prius Eco (2018)
  • Toyota Camry Hybrid LE (2018)
  • Kia Niro FE (2018)
  • Honda Accord Hybrid (2017)
  • Chevrolet Malibu Hybrid (2018)
  • Ford Fusion Hybrid (2018)
  • Hyundai Sonata SE Hybrid (2018)
  • Kia Optima Hybrid (2018)

Cost of gas for trip

You are planning a trip, and you are wondering how to get there. Usually, if the distance is not too big, traveling by car is fast and comfortable. Moreover, it is often cheaper than flying or even taking a train. But is it always? Finding the answer involves the current price of gasoline, your car's fuel efficiency, the distance, and some other road fees.

While planning a trip by car, first, you should find out what your car's fuel economy is (you can do that with our mpg calculator ). Then, knowing the trip distance, you can use the fuel cost calculator and easily find out if it is affordable for you to use a car for the trip. Remember, you can easily reduce the costs of gas by finding cheap gas stations on the way and by taking more friends with you who can chip in for the fuel.

Why do gas prices go up?

Gas prices may go up for a number of reasons:

  • Restricted supply of oil;
  • Increased taxes; and
  • The seller wished to increase their profit margins.

Does cruise control save gas?

Yes , cruise control saves gas, but only on flat roads. This is because it prevents unnecessary acceleration and deceleration , which can eat more fuel by the sudden shifts in the engine's demands. However, when using cruise control to climb hills, it cannot anticipate when you'll reach the top of the hill and so will keep the gas on for longer than you would.

How much will my drive cost me?

To find out how much your drive will cost, follow these steps:

  • Find the distance you have to travel and the fuel efficiency of your vehicle.
  • Multiply these two figures together. Ensure that the two distance units are the same. This result will give you the total fuel used.
  • Multiply the total fuel burned by the price of fuel. The two units of volume need to be the same.
  • The result is the total cost of your drive.

.css-m482sy.css-m482sy{color:#2B3148;background-color:transparent;font-family:var(--calculator-ui-font-family),Verdana,sans-serif;font-size:20px;line-height:24px;overflow:visible;padding-top:0px;position:relative;}.css-m482sy.css-m482sy:after{content:'';-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0);position:absolute;border:2px solid #EA9430;border-radius:2px;inset:-8px;z-index:1;}.css-m482sy .js-external-link-button.link-like,.css-m482sy .js-external-link-anchor{color:inherit;border-radius:1px;-webkit-text-decoration:underline;text-decoration:underline;}.css-m482sy .js-external-link-button.link-like:hover,.css-m482sy .js-external-link-anchor:hover,.css-m482sy .js-external-link-button.link-like:active,.css-m482sy .js-external-link-anchor:active{text-decoration-thickness:2px;text-shadow:1px 0 0;}.css-m482sy .js-external-link-button.link-like:focus-visible,.css-m482sy .js-external-link-anchor:focus-visible{outline:transparent 2px dotted;box-shadow:0 0 0 2px #6314E6;}.css-m482sy p,.css-m482sy div{margin:0;display:block;}.css-m482sy pre{margin:0;display:block;}.css-m482sy pre code{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}.css-m482sy pre:not(:first-child){padding-top:8px;}.css-m482sy ul,.css-m482sy ol{display:block margin:0;padding-left:20px;}.css-m482sy ul li,.css-m482sy ol li{padding-top:8px;}.css-m482sy ul ul,.css-m482sy ol ul,.css-m482sy ul ol,.css-m482sy ol ol{padding-top:0;}.css-m482sy ul:not(:first-child),.css-m482sy ol:not(:first-child){padding-top:4px;} .css-63uqft{margin:auto;background-color:white;overflow:auto;overflow-wrap:break-word;word-break:break-word;}.css-63uqft code,.css-63uqft kbd,.css-63uqft pre,.css-63uqft samp{font-family:monospace;}.css-63uqft code{padding:2px 4px;color:#444;background:#ddd;border-radius:4px;}.css-63uqft figcaption,.css-63uqft caption{text-align:center;}.css-63uqft figcaption{font-size:12px;font-style:italic;overflow:hidden;}.css-63uqft h3{font-size:1.75rem;}.css-63uqft h4{font-size:1.5rem;}.css-63uqft .mathBlock{font-size:24px;-webkit-padding-start:4px;padding-inline-start:4px;}.css-63uqft .mathBlock .katex{font-size:24px;text-align:left;}.css-63uqft .math-inline{background-color:#f0f0f0;display:inline-block;font-size:inherit;padding:0 3px;}.css-63uqft .videoBlock,.css-63uqft .imageBlock{margin-bottom:16px;}.css-63uqft .imageBlock__image-align--left,.css-63uqft .videoBlock__video-align--left{float:left;}.css-63uqft .imageBlock__image-align--right,.css-63uqft .videoBlock__video-align--right{float:right;}.css-63uqft .imageBlock__image-align--center,.css-63uqft .videoBlock__video-align--center{display:block;margin-left:auto;margin-right:auto;clear:both;}.css-63uqft .imageBlock__image-align--none,.css-63uqft .videoBlock__video-align--none{clear:both;margin-left:0;margin-right:0;}.css-63uqft .videoBlock__video--wrapper{position:relative;padding-bottom:56.25%;height:0;}.css-63uqft .videoBlock__video--wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%;}.css-63uqft .videoBlock__caption{text-align:left;}@font-face{font-family:'KaTeX_AMS';src:url(/katex-fonts/KaTeX_AMS-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_AMS-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_AMS-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Caligraphic';src:url(/katex-fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_Caligraphic-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_Caligraphic-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_Caligraphic';src:url(/katex-fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Caligraphic-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Caligraphic-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Fraktur';src:url(/katex-fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_Fraktur-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_Fraktur-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_Fraktur';src:url(/katex-fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Fraktur-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Fraktur-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_Main-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-BoldItalic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-BoldItalic.woff) format('woff'),url(/katex-fonts/KaTeX_Main-BoldItalic.ttf) format('truetype');font-weight:bold;font-style:italic;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-Italic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-Italic.woff) format('woff'),url(/katex-fonts/KaTeX_Main-Italic.ttf) format('truetype');font-weight:normal;font-style:italic;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Main-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Math';src:url(/katex-fonts/KaTeX_Math-BoldItalic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Math-BoldItalic.woff) format('woff'),url(/katex-fonts/KaTeX_Math-BoldItalic.ttf) format('truetype');font-weight:bold;font-style:italic;}@font-face{font-family:'KaTeX_Math';src:url(/katex-fonts/KaTeX_Math-Italic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Math-Italic.woff) format('woff'),url(/katex-fonts/KaTeX_Math-Italic.ttf) format('truetype');font-weight:normal;font-style:italic;}@font-face{font-family:'KaTeX_SansSerif';src:url(/katex-fonts/KaTeX_SansSerif-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_SansSerif-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_SansSerif-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_SansSerif';src:url(/katex-fonts/KaTeX_SansSerif-Italic.woff2) format('woff2'),url(/katex-fonts/KaTeX_SansSerif-Italic.woff) format('woff'),url(/katex-fonts/KaTeX_SansSerif-Italic.ttf) format('truetype');font-weight:normal;font-style:italic;}@font-face{font-family:'KaTeX_SansSerif';src:url(/katex-fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_SansSerif-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_SansSerif-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Script';src:url(/katex-fonts/KaTeX_Script-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Script-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Script-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size1';src:url(/katex-fonts/KaTeX_Size1-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size1-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size1-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size2';src:url(/katex-fonts/KaTeX_Size2-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size2-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size2-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size3';src:url(/katex-fonts/KaTeX_Size3-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size3-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size3-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size4';src:url(/katex-fonts/KaTeX_Size4-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size4-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size4-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Typewriter';src:url(/katex-fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Typewriter-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Typewriter-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}.css-63uqft .katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto;}.css-63uqft .katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor;}.css-63uqft .katex .katex-version::after{content:'0.13.13';}.css-63uqft .katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden;}.css-63uqft .katex .katex-html>.newline{display:block;}.css-63uqft .katex .base{position:relative;display:inline-block;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:-webkit-min-content;width:-moz-min-content;width:min-content;}.css-63uqft .katex .strut{display:inline-block;}.css-63uqft .katex .textbf{font-weight:bold;}.css-63uqft .katex .textit{font-style:italic;}.css-63uqft .katex .textrm{font-family:KaTeX_Main;}.css-63uqft .katex .textsf{font-family:KaTeX_SansSerif;}.css-63uqft .katex .texttt{font-family:KaTeX_Typewriter;}.css-63uqft .katex .mathnormal{font-family:KaTeX_Math;font-style:italic;}.css-63uqft .katex .mathit{font-family:KaTeX_Main;font-style:italic;}.css-63uqft .katex .mathrm{font-style:normal;}.css-63uqft .katex .mathbf{font-family:KaTeX_Main;font-weight:bold;}.css-63uqft .katex .boldsymbol{font-family:KaTeX_Math;font-weight:bold;font-style:italic;}.css-63uqft .katex .amsrm{font-family:KaTeX_AMS;}.css-63uqft .katex .mathbb,.css-63uqft .katex .textbb{font-family:KaTeX_AMS;}.css-63uqft .katex .mathcal{font-family:KaTeX_Caligraphic;}.css-63uqft .katex .mathfrak,.css-63uqft .katex .textfrak{font-family:KaTeX_Fraktur;}.css-63uqft .katex .mathtt{font-family:KaTeX_Typewriter;}.css-63uqft .katex .mathscr,.css-63uqft .katex .textscr{font-family:KaTeX_Script;}.css-63uqft .katex .mathsf,.css-63uqft .katex .textsf{font-family:KaTeX_SansSerif;}.css-63uqft .katex .mathboldsf,.css-63uqft .katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:bold;}.css-63uqft .katex .mathitsf,.css-63uqft .katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic;}.css-63uqft .katex .mainrm{font-family:KaTeX_Main;font-style:normal;}.css-63uqft .katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse;}.css-63uqft .katex .vlist-r{display:table-row;}.css-63uqft .katex .vlist{display:table-cell;vertical-align:bottom;position:relative;}.css-63uqft .katex .vlist>span{display:block;height:0;position:relative;}.css-63uqft .katex .vlist>span>span{display:inline-block;}.css-63uqft .katex .vlist>span>.pstrut{overflow:hidden;width:0;}.css-63uqft .katex .vlist-t2{margin-right:-2px;}.css-63uqft .katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px;}.css-63uqft .katex .vbox{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:baseline;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;}.css-63uqft .katex .hbox{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%;}.css-63uqft .katex .thinbox{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:0;max-width:0;}.css-63uqft .katex .msupsub{text-align:left;}.css-63uqft .katex .mfrac>span>span{text-align:center;}.css-63uqft .katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid;}.css-63uqft .katex .mfrac .frac-line,.css-63uqft .katex .overline .overline-line,.css-63uqft .katex .underline .underline-line,.css-63uqft .katex .hline,.css-63uqft .katex .hdashline,.css-63uqft .katex .rule{min-height:1px;}.css-63uqft .katex .mspace{display:inline-block;}.css-63uqft .katex .llap,.css-63uqft .katex .rlap,.css-63uqft .katex .clap{width:0;position:relative;}.css-63uqft .katex .llap>.inner,.css-63uqft .katex .rlap>.inner,.css-63uqft .katex .clap>.inner{position:absolute;}.css-63uqft .katex .llap>.fix,.css-63uqft .katex .rlap>.fix,.css-63uqft .katex .clap>.fix{display:inline-block;}.css-63uqft .katex .llap>.inner{right:0;}.css-63uqft .katex .rlap>.inner,.css-63uqft .katex .clap>.inner{left:0;}.css-63uqft .katex .clap>.inner>span{margin-left:-50%;margin-right:50%;}.css-63uqft .katex .rule{display:inline-block;border:solid 0;position:relative;}.css-63uqft .katex .overline .overline-line,.css-63uqft .katex .underline .underline-line,.css-63uqft .katex .hline{display:inline-block;width:100%;border-bottom-style:solid;}.css-63uqft .katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed;}.css-63uqft .katex .sqrt>.root{margin-left:0.27777778em;margin-right:-0.55555556em;}.css-63uqft .katex .sizing.reset-size1.size1,.css-63uqft .katex .fontsize-ensurer.reset-size1.size1{font-size:1em;}.css-63uqft .katex .sizing.reset-size1.size2,.css-63uqft .katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size1.size3,.css-63uqft .katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em;}.css-63uqft .katex .sizing.reset-size1.size4,.css-63uqft .katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em;}.css-63uqft .katex .sizing.reset-size1.size5,.css-63uqft .katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em;}.css-63uqft .katex .sizing.reset-size1.size6,.css-63uqft .katex .fontsize-ensurer.reset-size1.size6{font-size:2em;}.css-63uqft .katex .sizing.reset-size1.size7,.css-63uqft .katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em;}.css-63uqft .katex .sizing.reset-size1.size8,.css-63uqft .katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em;}.css-63uqft .katex .sizing.reset-size1.size9,.css-63uqft .katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em;}.css-63uqft .katex .sizing.reset-size1.size10,.css-63uqft .katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em;}.css-63uqft .katex .sizing.reset-size1.size11,.css-63uqft .katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em;}.css-63uqft .katex .sizing.reset-size2.size1,.css-63uqft .katex .fontsize-ensurer.reset-size2.size1{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size2.size2,.css-63uqft .katex .fontsize-ensurer.reset-size2.size2{font-size:1em;}.css-63uqft .katex .sizing.reset-size2.size3,.css-63uqft .katex .fontsize-ensurer.reset-size2.size3{font-size:1.16666667em;}.css-63uqft .katex .sizing.reset-size2.size4,.css-63uqft .katex .fontsize-ensurer.reset-size2.size4{font-size:1.33333333em;}.css-63uqft .katex .sizing.reset-size2.size5,.css-63uqft .katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em;}.css-63uqft .katex .sizing.reset-size2.size6,.css-63uqft .katex .fontsize-ensurer.reset-size2.size6{font-size:1.66666667em;}.css-63uqft .katex .sizing.reset-size2.size7,.css-63uqft .katex .fontsize-ensurer.reset-size2.size7{font-size:2em;}.css-63uqft .katex .sizing.reset-size2.size8,.css-63uqft .katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em;}.css-63uqft .katex .sizing.reset-size2.size9,.css-63uqft .katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em;}.css-63uqft .katex .sizing.reset-size2.size10,.css-63uqft .katex .fontsize-ensurer.reset-size2.size10{font-size:3.45666667em;}.css-63uqft .katex .sizing.reset-size2.size11,.css-63uqft .katex .fontsize-ensurer.reset-size2.size11{font-size:4.14666667em;}.css-63uqft .katex .sizing.reset-size3.size1,.css-63uqft .katex .fontsize-ensurer.reset-size3.size1{font-size:0.71428571em;}.css-63uqft .katex .sizing.reset-size3.size2,.css-63uqft .katex .fontsize-ensurer.reset-size3.size2{font-size:0.85714286em;}.css-63uqft .katex .sizing.reset-size3.size3,.css-63uqft .katex .fontsize-ensurer.reset-size3.size3{font-size:1em;}.css-63uqft .katex .sizing.reset-size3.size4,.css-63uqft .katex .fontsize-ensurer.reset-size3.size4{font-size:1.14285714em;}.css-63uqft .katex .sizing.reset-size3.size5,.css-63uqft .katex .fontsize-ensurer.reset-size3.size5{font-size:1.28571429em;}.css-63uqft .katex .sizing.reset-size3.size6,.css-63uqft .katex .fontsize-ensurer.reset-size3.size6{font-size:1.42857143em;}.css-63uqft .katex .sizing.reset-size3.size7,.css-63uqft .katex .fontsize-ensurer.reset-size3.size7{font-size:1.71428571em;}.css-63uqft .katex .sizing.reset-size3.size8,.css-63uqft .katex .fontsize-ensurer.reset-size3.size8{font-size:2.05714286em;}.css-63uqft .katex .sizing.reset-size3.size9,.css-63uqft .katex .fontsize-ensurer.reset-size3.size9{font-size:2.46857143em;}.css-63uqft .katex .sizing.reset-size3.size10,.css-63uqft .katex .fontsize-ensurer.reset-size3.size10{font-size:2.96285714em;}.css-63uqft .katex .sizing.reset-size3.size11,.css-63uqft .katex .fontsize-ensurer.reset-size3.size11{font-size:3.55428571em;}.css-63uqft .katex .sizing.reset-size4.size1,.css-63uqft .katex .fontsize-ensurer.reset-size4.size1{font-size:0.625em;}.css-63uqft .katex .sizing.reset-size4.size2,.css-63uqft .katex .fontsize-ensurer.reset-size4.size2{font-size:0.75em;}.css-63uqft .katex .sizing.reset-size4.size3,.css-63uqft .katex .fontsize-ensurer.reset-size4.size3{font-size:0.875em;}.css-63uqft .katex .sizing.reset-size4.size4,.css-63uqft .katex .fontsize-ensurer.reset-size4.size4{font-size:1em;}.css-63uqft .katex .sizing.reset-size4.size5,.css-63uqft .katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em;}.css-63uqft .katex .sizing.reset-size4.size6,.css-63uqft .katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em;}.css-63uqft .katex .sizing.reset-size4.size7,.css-63uqft .katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em;}.css-63uqft .katex .sizing.reset-size4.size8,.css-63uqft .katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em;}.css-63uqft .katex .sizing.reset-size4.size9,.css-63uqft .katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em;}.css-63uqft .katex .sizing.reset-size4.size10,.css-63uqft .katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em;}.css-63uqft .katex .sizing.reset-size4.size11,.css-63uqft .katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em;}.css-63uqft .katex .sizing.reset-size5.size1,.css-63uqft .katex .fontsize-ensurer.reset-size5.size1{font-size:0.55555556em;}.css-63uqft .katex .sizing.reset-size5.size2,.css-63uqft .katex .fontsize-ensurer.reset-size5.size2{font-size:0.66666667em;}.css-63uqft .katex .sizing.reset-size5.size3,.css-63uqft .katex .fontsize-ensurer.reset-size5.size3{font-size:0.77777778em;}.css-63uqft .katex .sizing.reset-size5.size4,.css-63uqft .katex .fontsize-ensurer.reset-size5.size4{font-size:0.88888889em;}.css-63uqft .katex .sizing.reset-size5.size5,.css-63uqft .katex .fontsize-ensurer.reset-size5.size5{font-size:1em;}.css-63uqft .katex .sizing.reset-size5.size6,.css-63uqft .katex .fontsize-ensurer.reset-size5.size6{font-size:1.11111111em;}.css-63uqft .katex .sizing.reset-size5.size7,.css-63uqft .katex .fontsize-ensurer.reset-size5.size7{font-size:1.33333333em;}.css-63uqft .katex .sizing.reset-size5.size8,.css-63uqft .katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em;}.css-63uqft .katex .sizing.reset-size5.size9,.css-63uqft .katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em;}.css-63uqft .katex .sizing.reset-size5.size10,.css-63uqft .katex .fontsize-ensurer.reset-size5.size10{font-size:2.30444444em;}.css-63uqft .katex .sizing.reset-size5.size11,.css-63uqft .katex .fontsize-ensurer.reset-size5.size11{font-size:2.76444444em;}.css-63uqft .katex .sizing.reset-size6.size1,.css-63uqft .katex .fontsize-ensurer.reset-size6.size1{font-size:0.5em;}.css-63uqft .katex .sizing.reset-size6.size2,.css-63uqft .katex .fontsize-ensurer.reset-size6.size2{font-size:0.6em;}.css-63uqft .katex .sizing.reset-size6.size3,.css-63uqft .katex .fontsize-ensurer.reset-size6.size3{font-size:0.7em;}.css-63uqft .katex .sizing.reset-size6.size4,.css-63uqft .katex .fontsize-ensurer.reset-size6.size4{font-size:0.8em;}.css-63uqft .katex .sizing.reset-size6.size5,.css-63uqft .katex .fontsize-ensurer.reset-size6.size5{font-size:0.9em;}.css-63uqft .katex .sizing.reset-size6.size6,.css-63uqft .katex .fontsize-ensurer.reset-size6.size6{font-size:1em;}.css-63uqft .katex .sizing.reset-size6.size7,.css-63uqft .katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size6.size8,.css-63uqft .katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em;}.css-63uqft .katex .sizing.reset-size6.size9,.css-63uqft .katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em;}.css-63uqft .katex .sizing.reset-size6.size10,.css-63uqft .katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em;}.css-63uqft .katex .sizing.reset-size6.size11,.css-63uqft .katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em;}.css-63uqft .katex .sizing.reset-size7.size1,.css-63uqft .katex .fontsize-ensurer.reset-size7.size1{font-size:0.41666667em;}.css-63uqft .katex .sizing.reset-size7.size2,.css-63uqft .katex .fontsize-ensurer.reset-size7.size2{font-size:0.5em;}.css-63uqft .katex .sizing.reset-size7.size3,.css-63uqft .katex .fontsize-ensurer.reset-size7.size3{font-size:0.58333333em;}.css-63uqft .katex .sizing.reset-size7.size4,.css-63uqft .katex .fontsize-ensurer.reset-size7.size4{font-size:0.66666667em;}.css-63uqft .katex .sizing.reset-size7.size5,.css-63uqft .katex .fontsize-ensurer.reset-size7.size5{font-size:0.75em;}.css-63uqft .katex .sizing.reset-size7.size6,.css-63uqft .katex .fontsize-ensurer.reset-size7.size6{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size7.size7,.css-63uqft .katex .fontsize-ensurer.reset-size7.size7{font-size:1em;}.css-63uqft .katex .sizing.reset-size7.size8,.css-63uqft .katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size7.size9,.css-63uqft .katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em;}.css-63uqft .katex .sizing.reset-size7.size10,.css-63uqft .katex .fontsize-ensurer.reset-size7.size10{font-size:1.72833333em;}.css-63uqft .katex .sizing.reset-size7.size11,.css-63uqft .katex .fontsize-ensurer.reset-size7.size11{font-size:2.07333333em;}.css-63uqft .katex .sizing.reset-size8.size1,.css-63uqft .katex .fontsize-ensurer.reset-size8.size1{font-size:0.34722222em;}.css-63uqft .katex .sizing.reset-size8.size2,.css-63uqft .katex .fontsize-ensurer.reset-size8.size2{font-size:0.41666667em;}.css-63uqft .katex .sizing.reset-size8.size3,.css-63uqft .katex .fontsize-ensurer.reset-size8.size3{font-size:0.48611111em;}.css-63uqft .katex .sizing.reset-size8.size4,.css-63uqft .katex .fontsize-ensurer.reset-size8.size4{font-size:0.55555556em;}.css-63uqft .katex .sizing.reset-size8.size5,.css-63uqft .katex .fontsize-ensurer.reset-size8.size5{font-size:0.625em;}.css-63uqft .katex .sizing.reset-size8.size6,.css-63uqft .katex .fontsize-ensurer.reset-size8.size6{font-size:0.69444444em;}.css-63uqft .katex .sizing.reset-size8.size7,.css-63uqft .katex .fontsize-ensurer.reset-size8.size7{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size8.size8,.css-63uqft .katex .fontsize-ensurer.reset-size8.size8{font-size:1em;}.css-63uqft .katex .sizing.reset-size8.size9,.css-63uqft .katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size8.size10,.css-63uqft .katex .fontsize-ensurer.reset-size8.size10{font-size:1.44027778em;}.css-63uqft .katex .sizing.reset-size8.size11,.css-63uqft .katex .fontsize-ensurer.reset-size8.size11{font-size:1.72777778em;}.css-63uqft .katex .sizing.reset-size9.size1,.css-63uqft .katex .fontsize-ensurer.reset-size9.size1{font-size:0.28935185em;}.css-63uqft .katex .sizing.reset-size9.size2,.css-63uqft .katex .fontsize-ensurer.reset-size9.size2{font-size:0.34722222em;}.css-63uqft .katex .sizing.reset-size9.size3,.css-63uqft .katex .fontsize-ensurer.reset-size9.size3{font-size:0.40509259em;}.css-63uqft .katex .sizing.reset-size9.size4,.css-63uqft .katex .fontsize-ensurer.reset-size9.size4{font-size:0.46296296em;}.css-63uqft .katex .sizing.reset-size9.size5,.css-63uqft .katex .fontsize-ensurer.reset-size9.size5{font-size:0.52083333em;}.css-63uqft .katex .sizing.reset-size9.size6,.css-63uqft .katex .fontsize-ensurer.reset-size9.size6{font-size:0.5787037em;}.css-63uqft .katex .sizing.reset-size9.size7,.css-63uqft .katex .fontsize-ensurer.reset-size9.size7{font-size:0.69444444em;}.css-63uqft .katex .sizing.reset-size9.size8,.css-63uqft .katex .fontsize-ensurer.reset-size9.size8{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size9.size9,.css-63uqft .katex .fontsize-ensurer.reset-size9.size9{font-size:1em;}.css-63uqft .katex .sizing.reset-size9.size10,.css-63uqft .katex .fontsize-ensurer.reset-size9.size10{font-size:1.20023148em;}.css-63uqft .katex .sizing.reset-size9.size11,.css-63uqft .katex .fontsize-ensurer.reset-size9.size11{font-size:1.43981481em;}.css-63uqft .katex .sizing.reset-size10.size1,.css-63uqft .katex .fontsize-ensurer.reset-size10.size1{font-size:0.24108004em;}.css-63uqft .katex .sizing.reset-size10.size2,.css-63uqft .katex .fontsize-ensurer.reset-size10.size2{font-size:0.28929605em;}.css-63uqft .katex .sizing.reset-size10.size3,.css-63uqft .katex .fontsize-ensurer.reset-size10.size3{font-size:0.33751205em;}.css-63uqft .katex .sizing.reset-size10.size4,.css-63uqft .katex .fontsize-ensurer.reset-size10.size4{font-size:0.38572806em;}.css-63uqft .katex .sizing.reset-size10.size5,.css-63uqft .katex .fontsize-ensurer.reset-size10.size5{font-size:0.43394407em;}.css-63uqft .katex .sizing.reset-size10.size6,.css-63uqft .katex .fontsize-ensurer.reset-size10.size6{font-size:0.48216008em;}.css-63uqft .katex .sizing.reset-size10.size7,.css-63uqft .katex .fontsize-ensurer.reset-size10.size7{font-size:0.57859209em;}.css-63uqft .katex .sizing.reset-size10.size8,.css-63uqft .katex .fontsize-ensurer.reset-size10.size8{font-size:0.69431051em;}.css-63uqft .katex .sizing.reset-size10.size9,.css-63uqft .katex .fontsize-ensurer.reset-size10.size9{font-size:0.83317261em;}.css-63uqft .katex .sizing.reset-size10.size10,.css-63uqft .katex .fontsize-ensurer.reset-size10.size10{font-size:1em;}.css-63uqft .katex .sizing.reset-size10.size11,.css-63uqft .katex .fontsize-ensurer.reset-size10.size11{font-size:1.19961427em;}.css-63uqft .katex .sizing.reset-size11.size1,.css-63uqft .katex .fontsize-ensurer.reset-size11.size1{font-size:0.20096463em;}.css-63uqft .katex .sizing.reset-size11.size2,.css-63uqft .katex .fontsize-ensurer.reset-size11.size2{font-size:0.24115756em;}.css-63uqft .katex .sizing.reset-size11.size3,.css-63uqft .katex .fontsize-ensurer.reset-size11.size3{font-size:0.28135048em;}.css-63uqft .katex .sizing.reset-size11.size4,.css-63uqft .katex .fontsize-ensurer.reset-size11.size4{font-size:0.32154341em;}.css-63uqft .katex .sizing.reset-size11.size5,.css-63uqft .katex .fontsize-ensurer.reset-size11.size5{font-size:0.36173633em;}.css-63uqft .katex .sizing.reset-size11.size6,.css-63uqft .katex .fontsize-ensurer.reset-size11.size6{font-size:0.40192926em;}.css-63uqft .katex .sizing.reset-size11.size7,.css-63uqft .katex .fontsize-ensurer.reset-size11.size7{font-size:0.48231511em;}.css-63uqft .katex .sizing.reset-size11.size8,.css-63uqft .katex .fontsize-ensurer.reset-size11.size8{font-size:0.57877814em;}.css-63uqft .katex .sizing.reset-size11.size9,.css-63uqft .katex .fontsize-ensurer.reset-size11.size9{font-size:0.69453376em;}.css-63uqft .katex .sizing.reset-size11.size10,.css-63uqft .katex .fontsize-ensurer.reset-size11.size10{font-size:0.83360129em;}.css-63uqft .katex .sizing.reset-size11.size11,.css-63uqft .katex .fontsize-ensurer.reset-size11.size11{font-size:1em;}.css-63uqft .katex .delimsizing.size1{font-family:KaTeX_Size1;}.css-63uqft .katex .delimsizing.size2{font-family:KaTeX_Size2;}.css-63uqft .katex .delimsizing.size3{font-family:KaTeX_Size3;}.css-63uqft .katex .delimsizing.size4{font-family:KaTeX_Size4;}.css-63uqft .katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1;}.css-63uqft .katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4;}.css-63uqft .katex .nulldelimiter{display:inline-block;width:0.12em;}.css-63uqft .katex .delimcenter{position:relative;}.css-63uqft .katex .op-symbol{position:relative;}.css-63uqft .katex .op-symbol.small-op{font-family:KaTeX_Size1;}.css-63uqft .katex .op-symbol.large-op{font-family:KaTeX_Size2;}.css-63uqft .katex .op-limits>.vlist-t{text-align:center;}.css-63uqft .katex .accent>.vlist-t{text-align:center;}.css-63uqft .katex .accent .accent-body{position:relative;}.css-63uqft .katex .accent .accent-body:not(.accent-full){width:0;}.css-63uqft .katex .overlay{display:block;}.css-63uqft .katex .mtable .vertical-separator{display:inline-block;min-width:1px;}.css-63uqft .katex .mtable .arraycolsep{display:inline-block;}.css-63uqft .katex .mtable .col-align-c>.vlist-t{text-align:center;}.css-63uqft .katex .mtable .col-align-l>.vlist-t{text-align:left;}.css-63uqft .katex .mtable .col-align-r>.vlist-t{text-align:right;}.css-63uqft .katex .svg-align{text-align:left;}.css-63uqft .katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;}.css-63uqft .katex svg path{stroke:none;}.css-63uqft .katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none;}.css-63uqft .katex .stretchy{width:100%;display:block;position:relative;overflow:hidden;}.css-63uqft .katex .stretchy::before,.css-63uqft .katex .stretchy::after{content:'';}.css-63uqft .katex .hide-tail{width:100%;position:relative;overflow:hidden;}.css-63uqft .katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden;}.css-63uqft .katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden;}.css-63uqft .katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden;}.css-63uqft .katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden;}.css-63uqft .katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden;}.css-63uqft .katex .x-arrow-pad{padding:0 0.5em;}.css-63uqft .katex .cd-arrow-pad{padding:0 0.55556em 0 0.27778em;}.css-63uqft .katex .x-arrow,.css-63uqft .katex .mover,.css-63uqft .katex .munder{text-align:center;}.css-63uqft .katex .boxpad{padding:0 0.3em 0 0.3em;}.css-63uqft .katex .fbox,.css-63uqft .katex .fcolorbox{box-sizing:border-box;border:0.04em solid;}.css-63uqft .katex .cancel-pad{padding:0 0.2em 0 0.2em;}.css-63uqft .katex .cancel-lap{margin-left:-0.2em;margin-right:-0.2em;}.css-63uqft .katex .sout{border-bottom-style:solid;border-bottom-width:0.08em;}.css-63uqft .katex .angl{box-sizing:border-box;border-top:0.049em solid;border-right:0.049em solid;margin-right:0.03889em;}.css-63uqft .katex .anglpad{padding:0 0.03889em 0 0.03889em;}.css-63uqft .katex .eqn-num::before{counter-increment:katexEqnNo;content:'(' counter(katexEqnNo) ')';}.css-63uqft .katex .mml-eqn-num::before{counter-increment:mmlEqnNo;content:'(' counter(mmlEqnNo) ')';}.css-63uqft .katex .mtr-glue{width:50%;}.css-63uqft .katex .cd-vert-arrow{display:inline-block;position:relative;}.css-63uqft .katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + 0.3em);text-align:left;}.css-63uqft .katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + 0.3em);text-align:right;}.css-63uqft .katex-display{display:block;margin:1em 0;text-align:center;}.css-63uqft .katex-display>.katex{display:block;white-space:nowrap;}.css-63uqft .katex-display>.katex>.katex-html{display:block;position:relative;}.css-63uqft .katex-display>.katex>.katex-html>.tag{position:absolute;right:0;}.css-63uqft .katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto;}.css-63uqft .katex-display.fleqn>.katex{text-align:left;padding-left:2em;}.css-63uqft body{counter-reset:katexEqnNo mmlEqnNo;}.css-63uqft table{width:-webkit-max-content;width:-moz-max-content;width:max-content;}.css-63uqft .tableBlock{max-width:100%;margin-bottom:1rem;overflow-y:scroll;}.css-63uqft .tableBlock thead,.css-63uqft .tableBlock thead th{border-bottom:1px solid #333!important;}.css-63uqft .tableBlock th,.css-63uqft .tableBlock td{padding:10px;text-align:left;}.css-63uqft .tableBlock th{font-weight:bold!important;}.css-63uqft .tableBlock caption{caption-side:bottom;color:#555;font-size:12px;font-style:italic;text-align:center;}.css-63uqft .tableBlock caption>p{margin:0;}.css-63uqft .tableBlock th>p,.css-63uqft .tableBlock td>p{margin:0;}.css-63uqft .tableBlock [data-background-color='aliceblue']{background-color:#f0f8ff;color:#000;}.css-63uqft .tableBlock [data-background-color='black']{background-color:#000;color:#fff;}.css-63uqft .tableBlock [data-background-color='chocolate']{background-color:#d2691e;color:#fff;}.css-63uqft .tableBlock [data-background-color='cornflowerblue']{background-color:#6495ed;color:#fff;}.css-63uqft .tableBlock [data-background-color='crimson']{background-color:#dc143c;color:#fff;}.css-63uqft .tableBlock [data-background-color='darkblue']{background-color:#00008b;color:#fff;}.css-63uqft .tableBlock [data-background-color='darkseagreen']{background-color:#8fbc8f;color:#000;}.css-63uqft .tableBlock [data-background-color='deepskyblue']{background-color:#00bfff;color:#000;}.css-63uqft .tableBlock [data-background-color='gainsboro']{background-color:#dcdcdc;color:#000;}.css-63uqft .tableBlock [data-background-color='grey']{background-color:#808080;color:#fff;}.css-63uqft .tableBlock [data-background-color='lemonchiffon']{background-color:#fffacd;color:#000;}.css-63uqft .tableBlock [data-background-color='lightpink']{background-color:#ffb6c1;color:#000;}.css-63uqft .tableBlock [data-background-color='lightsalmon']{background-color:#ffa07a;color:#000;}.css-63uqft .tableBlock [data-background-color='lightskyblue']{background-color:#87cefa;color:#000;}.css-63uqft .tableBlock [data-background-color='mediumblue']{background-color:#0000cd;color:#fff;}.css-63uqft .tableBlock [data-background-color='omnigrey']{background-color:#f0f0f0;color:#000;}.css-63uqft .tableBlock [data-background-color='white']{background-color:#fff;color:#000;}.css-63uqft .tableBlock [data-text-align='center']{text-align:center;}.css-63uqft .tableBlock [data-text-align='left']{text-align:left;}.css-63uqft .tableBlock [data-text-align='right']{text-align:right;}.css-63uqft .tableBlock [data-vertical-align='bottom']{vertical-align:bottom;}.css-63uqft .tableBlock [data-vertical-align='middle']{vertical-align:middle;}.css-63uqft .tableBlock [data-vertical-align='top']{vertical-align:top;}.css-63uqft .tableBlock__font-size--xxsmall{font-size:10px;}.css-63uqft .tableBlock__font-size--xsmall{font-size:12px;}.css-63uqft .tableBlock__font-size--small{font-size:14px;}.css-63uqft .tableBlock__font-size--large{font-size:18px;}.css-63uqft .tableBlock__border--some tbody tr:not(:last-child){border-bottom:1px solid #e2e5e7;}.css-63uqft .tableBlock__border--bordered td,.css-63uqft .tableBlock__border--bordered th{border:1px solid #e2e5e7;}.css-63uqft .tableBlock__border--borderless tbody+tbody,.css-63uqft .tableBlock__border--borderless td,.css-63uqft .tableBlock__border--borderless th,.css-63uqft .tableBlock__border--borderless tr,.css-63uqft .tableBlock__border--borderless thead,.css-63uqft .tableBlock__border--borderless thead th{border:0!important;}.css-63uqft .tableBlock:not(.tableBlock__table-striped) tbody tr{background-color:unset!important;}.css-63uqft .tableBlock__table-striped tbody tr:nth-of-type(odd){background-color:#f9fafc!important;}.css-63uqft .tableBlock__table-compactl th,.css-63uqft .tableBlock__table-compact td{padding:3px!important;}.css-63uqft .tableBlock__full-size{width:100%;}.css-63uqft .textBlock{margin-bottom:16px;}.css-63uqft .textBlock__text-formatting--finePrint{font-size:12px;}.css-63uqft .textBlock__text-infoBox{padding:0.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:0.25rem;}.css-63uqft .textBlock__text-infoBox p{margin:0;}.css-63uqft .textBlock__text-infoBox--primary{background-color:#cce5ff;border-color:#b8daff;color:#004085;}.css-63uqft .textBlock__text-infoBox--secondary{background-color:#e2e3e5;border-color:#d6d8db;color:#383d41;}.css-63uqft .textBlock__text-infoBox--success{background-color:#d4edda;border-color:#c3e6cb;color:#155724;}.css-63uqft .textBlock__text-infoBox--danger{background-color:#f8d7da;border-color:#f5c6cb;color:#721c24;}.css-63uqft .textBlock__text-infoBox--warning{background-color:#fff3cd;border-color:#ffeeba;color:#856404;}.css-63uqft .textBlock__text-infoBox--info{background-color:#d1ecf1;border-color:#bee5eb;color:#0c5460;}.css-63uqft .textBlock__text-infoBox--dark{background-color:#d6d8d9;border-color:#c6c8ca;color:#1b1e21;}.css-63uqft .text-overline{-webkit-text-decoration:overline;text-decoration:overline;}.css-63uqft.css-63uqft{color:#2B3148;background-color:transparent;font-family:var(--calculator-ui-font-family),Verdana,sans-serif;font-size:20px;line-height:24px;overflow:visible;padding-top:0px;position:relative;}.css-63uqft.css-63uqft:after{content:'';-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0);position:absolute;border:2px solid #EA9430;border-radius:2px;inset:-8px;z-index:1;}.css-63uqft .js-external-link-button.link-like,.css-63uqft .js-external-link-anchor{color:inherit;border-radius:1px;-webkit-text-decoration:underline;text-decoration:underline;}.css-63uqft .js-external-link-button.link-like:hover,.css-63uqft .js-external-link-anchor:hover,.css-63uqft .js-external-link-button.link-like:active,.css-63uqft .js-external-link-anchor:active{text-decoration-thickness:2px;text-shadow:1px 0 0;}.css-63uqft .js-external-link-button.link-like:focus-visible,.css-63uqft .js-external-link-anchor:focus-visible{outline:transparent 2px dotted;box-shadow:0 0 0 2px #6314E6;}.css-63uqft p,.css-63uqft div{margin:0;display:block;}.css-63uqft pre{margin:0;display:block;}.css-63uqft pre code{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}.css-63uqft pre:not(:first-child){padding-top:8px;}.css-63uqft ul,.css-63uqft ol{display:block margin:0;padding-left:20px;}.css-63uqft ul li,.css-63uqft ol li{padding-top:8px;}.css-63uqft ul ul,.css-63uqft ol ul,.css-63uqft ul ol,.css-63uqft ol ol{padding-top:0;}.css-63uqft ul:not(:first-child),.css-63uqft ol:not(:first-child){padding-top:4px;} Plan a trip and fuel costs

Fuel consumption of 20 miles per gallon (US). If you can't find your car or the fuel consumption is different, select the "Other vehicle" option instead.

Cost of the trip

Division of payment

Number of people

Cost per person

Your engine's specifications, age, and condition can affect its fuel economy, so... your mileage may vary . Select the "Other vehicle" (in the first field) to enter a custom fuel economy.

Fuel Calculator ⛽

Use this fuel cost calculator to easily calculate fuel cost and the gallons / liters needed to complete a trip. Calculate gas cost or petrol cost - we support miles and gallons, liters and km, etc.

Related calculators

  • Fuel Needed & Fuel Cost Calculations

Variation in fuel consumption

  • Formula for fuel amount
  • How to improve fuel economy?

    Fuel Needed & Fuel Cost Calculations

In order to calculate the amount of fuel for a given trip using our fuel cost calculator or otherwise, you need to know the total distance you will be covering and the expected average fuel consumption of your vehicle. It works the same way for cars, trucks, buses, vans, SUVs, and even boats and planes. If you also want to calculate the fuel cost of a trip, then you need to know the price per gallon or price per liter at which you can by.

Our calculator supports entering distances in miles and kilometers. In terms of fuel consumption, it is very versatile as it accepts: miles per gallon, gallons per 100 miles, kilometers per liter and liters per 100 kilometers. In the US, miles per gallon and kilometers per liter would more frequently used, while in most of Europe the preferred metric would be liters to travel 100 km and gallons to cover 100 miles. The result in terms of fuel amount is in gallons or liters, and for fuel cost is in the currency you entered it in (you can simply ignore the currency sign, e.g. $ (USD)).

Make sure to account for the variation in fuel consumption when driving within city limits and on highways - usually the consumption is higher in the former case. Always fill your tank with more fuel than you anticipate you would need, especially during winter or when driving through desolate areas or when extreme weather conditions are expected.

    Formula for fuel amount

If you are using mpg (miles per gallon), then the formula for calculating the total amount of gas needed is:

Fuel = Distance / Consumption mpg

For example, if the distance is 500 miles and consumption is 20 miles per gallon, then the fuel you will need for the entire distance is 500 / 20 = 25 gallons.

If you are using gallons per 100 mi to measure consumption, then the formula for calculating the amount of fuel needed is:

Fuel = Distance / 100 x Consumption per 100 mi

For example, if the distance is 300 miles and the consumption is 5 gallons per 100 miles, you will need 300 / 100 x 5 = 15 gallons of gas.

Both formulas are applicable for metric units - km and liters, just make sure you do not mix metric units. Using an online fuel calculator will make sure you do not commit that mistake.

    How to improve fuel economy?

Don't like the numbers you see when you use our tool? If you wonder how you can improve the fuel efficiency of your vehicle so you can cover more miles (or kilometers) with less fuel, we have some tips that can result in significant savings, especially when applied consistently over time. Here is our list of 10 fuel efficiency tips :

  • Drive sensibly - If you drive aggressively - too fast compared to other cars, constantly overtaking other vehicles, and rapid acceleration followed by braking, only to accelerate again wastes a lot of gas. By some estimates, quick starts and hard stops can increase fuel consumption by more than 30% ! This is why this is number one in our fuel efficiency list.
  • Observe the speed limit - Different vehicles have optimal fuel economy at different velocities, but one way to increase gas mileage is to avoid driving at higher speeds. A small reduction of your average speed , say from 70 mph to 60 mph (equivalently: from 115 km/h to 100 km/h) can help you save 10 to 20% due to lower fuel consumption.
  • Follow the leader - drive at about the speed of the vehicle in front of you, if they are following the first 2 tips above. This will make sure you need to accelerate and decelerate as little as possible. If possible, overtake drivers who do not follow them, as it will make it very hard for you to do so. This will result in smaller numbers from our fuel cost calculator.
  • Check your tires - make sure your tire pressure is at optimal levels as indicated in the owner's manual provided by the auto manufacturer. If the pressure is too low your mileage will decrease significantly, not to mention that the car may become dangerous to drive.
  • Smart routing - make sure you take optimal paths to reach your desired destination. Learn the different modes of route selection your GPS employs - the shortest is not always the fastest and idling stuck in traffic will waste fuel. Use services such as Google Maps to check for traffic congestions on the planned route. Using a route you know well can also help improve fuel efficiency, since you will know in advance where it makes sense to increase speed and where it does not, because of a traffic light just ahead.
  • Air conditioning - turning it off will most likely improve your fuel efficiency by 10-15%, and will result in you having more power to accelerate quicker when needed. If it is necessary, make sure you do not set it to unreasonably low or high levels. Air temperature in the range between 64°F - 75°F (18°C - 24°C) is comfortable for most people. Due to the law of thermodynamics, each subsequent degree of heating or cooling requires progressively more energy to accomplish and maintain.
  • Remove excess weight - make sure you remove any unneeded heavy items you have in your trunk. One of the untold benefits of losing weight is that your car will be a bit more efficient as well.
  • Turn cruise control ON - when on a highway, make sure to use your cruise control option. By keeping your speed constant, it will most likely save gas and result in lower fuel costs.
  • Avoid idling - idling means 0 miles per gallon and the larger the car engine, the more gas is wasted when idling. Avoid excessive idling, when possible, in line with point #5 above to keep fuel costs low.
  • Maintain your vehicle - a well-maintained car, truck, van, SUV, etc. will operate at greater efficiency. Exact fuel savings are hard to calculate, as it will depend on the type of maintenance work your vehicle needs. However, good maintenance is sure to lead to fuel savings and smaller cost numbers coming out of our calculator.

fuel cost

All the above advice is fine, but what do you do if you have been following the above advice, yet our tool still shows you numbers that are so high you want to cry? Well, it is most likely time for a new car, or it could be just the fuel price fluctuations over which, unfortunately, neither you nor we have much influence, individually. Fuel prices in most places contain license fees and other state or local government taxes, in some places reaching as much as 50% of the final price. Financial market fluctuations, natural disasters or extreme weather, crisis, as well the geographical area you are in and the local fuel suppliers all influence the price of gas. All you can do is try to observe them and predict when you can get a more decent price.

Cite this calculator & page

If you'd like to cite this online calculator resource and information as provided on the page, you can use the following citation: Georgiev G.Z., "Fuel Cost Calculator" , [online] Available at: https://www.gigacalculator.com/calculators/fuel-calculator.php URL [Accessed Date: 23 Aug, 2024].

     Transportation calculators

Gas Estimator – Accurate Fuel Cost Calculator

This gas estimator tool helps you calculate the cost of gas for your trip based on current prices and your vehicle’s fuel efficiency.

Gas Estimator Calculator

This gas estimator calculator is designed to provide an accurate estimation of gas costs for your journey. The calculator takes into account the distance you plan to travel, your vehicle’s fuel efficiency, the cost of fuel, extra stops, and anticipated traffic conditions.

How to Use the Calculator

  • Enter the total distance of your trip in miles.
  • Enter your vehicle’s fuel efficiency in miles per gallon (MPG).
  • Enter the current cost of fuel per gallon in dollars.
  • Enter a percentage increase for extra stops (food breaks, rest stops, etc.).
  • Enter a percentage increase for traffic conditions.
  • Click the “Calculate” button to see the estimated gas cost.

How It Calculates the Results

The calculator first adjusts the total distance by adding the percentage increase due to extra stops. Then, it further adjusts the distance based on the traffic factor. The total gallons of fuel needed are calculated by dividing this adjusted distance by your vehicle’s fuel efficiency (MPG). Finally, the total cost of fuel for the trip is calculated by multiplying the total gallons needed by the cost per gallon of fuel.

Limitations

This calculator provides an estimate based on the data you provide. Variations in driving conditions, vehicle performance, and other factors may result in actual costs differing from this estimate. Always consider having a buffer for unexpected expenses in your travel budget.

Use Cases for This Calculator

Calculating gas cost for a road trip.

Enter the total distance of your road trip and your vehicle’s fuel efficiency to estimate how much you’ll spend on gas. Plan your budget effectively and ensure you have enough funds for the journey.

Determining Gas Consumption for Daily Commute

Input the distance you travel to work each day and your car’s miles per gallon to discover your daily gas consumption. Use this information to optimize your route and reduce fuel usage, saving money in the long run.

Comparing Gas Prices at Different Stations

Enter the price per gallon at various gas stations to compare and find the most cost-effective option. Make informed decisions on where to fill up your tank based on real-time pricing data.

Estimating Gas Required for a Vacation

Input the total mileage of your vacation trip and your vehicle’s fuel efficiency to estimate the amount of gas needed. Plan your journey with confidence, knowing you have sufficient fuel for the entire excursion.

Calculating Carbon Emissions for Your Vehicle

Enter your car’s fuel efficiency and the distance you travel to determine your carbon footprint. Gain insights into the environmental impact of your daily commute or road trips.

Calculating Fuel Savings by Carpooling

Input the number of passengers and their locations to estimate cost savings and reduced fuel consumption by carpooling. Encourage eco-friendly transportation choices and save money on gas expenses.

Estimating Gas Budget for a Month

Enter your average daily travel distance and fuel efficiency to calculate your monthly gas budget. Manage your expenses effectively by planning for fuel costs ahead of time.

Calculating Gas Consumption for a Cross-Country Road Trip

Input the total distance of your cross-country journey and your vehicle’s miles per gallon to estimate gas consumption. Prepare for your adventure by knowing how much fuel you’ll need for the entire trip.

Planning Fuel Stops for a Long Road Trip

Enter the distance between cities on your road trip route to plan optimal fuel stops. Ensure you refuel at strategic locations to avoid running out of gas in remote areas.

Estimating Fuel Savings with a Hybrid or Electric Vehicle

Compare the fuel costs of a hybrid or electric vehicle with a traditional car by entering the required data. Explore the potential savings and environmental benefits of switching to a more fuel-efficient vehicle.

  • Fuel Estimator – Accurate Fuel Cost Calculator
  • Mileage Estimator – Accurate Distance & Fuel Calculation
  • Fuel Estimator UK – Accurate Fuel Cost Calculator
  • U Haul Fuel Estimator – Calculate Costs
  • Petrol Estimator – Calculate Fuel Costs

Trip Fuel Cost Calculator: Miles or Kilometers, Gallons or Liters

Trip Fuel Cost Calculator Sign

This calculator will estimate your trip fuel cost based on the travel distance, your vehicle's fuel economy rating, and on the price of one gallon or one liter of gasoline.

Plus, if the riders are splitting the trip's fuel cost, the kilometers or miles to gas cost calculator will calculate each person's share (i.e., "How much gas money should I give?").

If you don't know the distance your journey will cover, you can use the Distance Calculator section of the Drive Time Calculator to map your route and calculate the distance.

Also on this page:

  • Miles to money calculator.
  • How to calculate trip fuel cost.

Trip Fuel Cost Calculator

Calculate your trip's fuel cost based on the distance, your vehicle's fuel economy, and on the price per unit of gas.

Selected Data Record:

A Data Record is a set of calculator entries that are stored in your web browser's Local Storage. If a Data Record is currently selected in the "Data" tab, this line will list the name you gave to that data record. If no data record is selected, or you have no entries stored for this calculator, the line will display "None".

Fuel economy:

Enter your vehicle's fuel economy rating.

Price of one unit of gasoline:

Enter the current price of one unit (liter or gallon) of gasoline (or diesel fuel), but without the dollar sign.

Number of persons splitting gas cost:

Optional: If you are splitting the gas cost with other passengers, enter the total number of persons splitting the cost, including yourself. If no one is sharing the cost, leave blank or enter 0 or 1.

Fuel units required:

Based on your entries, this is the number of units of gasoline that will be needed for the trip.

Trip fuel cost:

Based on your entries this is the estimated total fuel cost for the trip.

Fuel cost per distance unit:

Based on your entries this is the estimated fuel cost per distance unit (mile or kilometer).

Share of cost per person:

Based on your entries this is cost for each person sharing in the gas trip cost, if applicable.

If you would like to save the current entries and results to the device you are using, tap or click on the Data tab and then tap or click on the Save button. If you upgrade your Basic, Local Storage subscription to the Cloud Storage acess level, you can save multiple sets of entries for this calculator to the secure online database, which makes them accessable from any device.

Related Calculators

Help and tools, how to calculate trip fuel cost, plus a miles to money calculator., miles to money calculator.

Once you've used the Trip Fuel Cost Calculator to calculate your gas cost per distance unit, you can then use the following calculator to convert miles or kilometers into gas money and total driving costs (per the IRS business per-mile deduction).

How to Calculate Trip Fuel Cost

The basic formula for calculating trip fuel costs is as follows:

However, the method for solving the trip fuel cost formula depends on which fuel economy rating method you use. I will cover 4 of the most common methods below.

Miles Per Gallon Method

Liters per 100 kilometers method, liters per mile method, kilometers per liter method.

If you would like me to add a different fuel economy method, please let me know using expandable feedback from below the road trip fuel cost calculator.

Adjust Calculator Width:

Move the slider to left and right to adjust the calculator width. Note that the Help and Tools panel will be hidden when the calculator is too wide to fit both on the screen. Moving the slider to the left will bring the instructions and tools panel back into view.

Also note that some calculators will reformat to accommodate the screen size as you make the calculator wider or narrower. If the calculator is narrow, columns of entry rows will be converted to a vertical entry form, whereas a wider calculator will display columns of entry rows, and the entry fields will be smaller in size ... since they will not need to be "thumb friendly".

Show/Hide Popup Keypads:

Select Show or Hide to show or hide the popup keypad icons located next to numeric entry fields. These are generally only needed for mobile devices that don't have decimal points in their numeric keypads. So if you are on a desktop, you may find the calculator to be more user-friendly and less cluttered without them.

Stick/Unstick Tools:

Select Stick or Unstick to stick or unstick the help and tools panel. Selecting "Stick" will keep the panel in view while scrolling the calculator vertically. If you find that annoying, select "Unstick" to keep the panel in a stationary position.

If the tools panel becomes "Unstuck" on its own, try clicking "Unstick" and then "Stick" to re-stick the panel.

TollGuru Logo

  • Toll Calculator
  • Toll API pricing
  • Toll calculator pricing
  • Toll API - Get started
  • Toll API docs
  • Get API key

Gas Calculator – Road Trip Gas Expenses on Google Maps

Looking for how much gas costs on your next trip? Use the Gas Calculator!

Planning a road trip , a delivery, or a dispatch ? Get toll charges, fuel expenses, total travel costs, state miles, and toll miles. Find the cheapest toll routes and rates whether paying with E-ZPass, toll transponders, cash, or license plate tolling across the United States. Fleets? Integrate Toll API for pre-trip route optimization, on-trip and post-trip toll, and route information.

Enter the start point, destination, vehicle type, and payment method. The toll calculator provides a toll breakdown, total toll costs, fuel estimates, and rates for each US toll road, turnpike, express lane, bridge, and tunnel - including cash rates, E-ZPass discounts, pay-by-plate tolls, and more.

Select Vehicle Type

Departure Time

  • Payment Options: Calculate toll costs for cash, E-ZPass, I-Pass, TxTag & more.
  • Interactive Toll Plaza Map: View toll plazas along highway or turnpike route.
  • Cheapest vs Fastest Routes: Choose the cheapest or quickest toll route.
  • Cost Breakdown: Get itemized toll costs, fuel expenses & other trip charges.
  • Filter by Vehicle Type: See personalized toll rates for cars, trucks, RVs & EVs.
  • Truck Toll Routing: Get truck-legal routes with parking & break stops.
  • Truck State Mileage: Get state mileage and toll miles for compliance.
  • Multi-Stop Optimization: Reorder stops for efficient multi-destination trips.
  • EV Trip Planner: Locate EV charging stations, costs & connector types.

Us Toll Guide

  • How do tolls work in the USA
  • Which states do not have toll roads?
  • Can I pay US tolls with a credit card?
  • How do you pay tolls in USA?
  • Which toll passes/ toll tags work in all states?
  • Is E-ZPass good in all states?

TollGuru toll calculator has extensive coverage of all US tolls - Pennsylvania Turnpike, Ohio Turnpike, commercial trucks, rental car tolls, and everything in between. Get vehicle-specific toll pricing for trucks, cars, taxis, RVs, EVs, etc.

Other toll calculators

New York Toll Calculator

New Jersey Toll Calculator

Illinois Toll Calculator

Texas Toll Calculator

Maryland Toll Calculator

Virginia Toll Calculator

Florida Toll Calculator

Massachusetts Toll Calculator

California Toll Calculator

Pennsylvania Toll Calculator

Colordao Toll Calculator

Delaware Toll Calculator

Canada Toll Calculator

Mexico Toll Calculator

Australia Toll Calculator

India Toll Calculator

Argentina Toll Calculator

Peru Toll Calculator

Europe Toll Calculator

Russia Toll Calculator

UK Toll Calculator

France Toll Calculator

Italy Toll Calculator

Germany Toll Calculator

US Toll Calculator - How to Use Toll Calculator | TollGuru

Fuel Consumption And Fuel Cost Calculator (gas Calculator)

This free fuel consumption calculator estimates the fuel cost of your trip based on average fuel consumption, trip distance, and fuel price! Use this gas calculator to find out consumption and price of the gas instantly!

Fuel Calculator

Table of contents, how to calculate fuel consumption, how to use gas calculator, why gas costs, public transportation, car-sharing or carpool, fuel-efficient vehicles, tune the engine, tire adjustment, proper motor oil, efficient travel planning, factors that impact the fuel prices, intervention by the government, financial markets, geographical area, weather or natural disasters, how does gas calculator work, what does mpg mean, gas mileage calculator.

Parmis Kazemi

Fuel Consumption And Fuel Cost Calculator (gas Calculator) English

Fuel consumption and fuel cost calculator (gas calculator) in other languages, how to add fuel consumption and fuel cost calculator (gas calculator) to my website.

You can easily add Fuel Consumption And Fuel Cost Calculator (gas Calculator) to your own website with the help of our code. Paste the code to your website and the calculator will appear on that spot automatically!

How to add Fuel Consumption And Fuel Cost Calculator (gas Calculator) widget to WordPress website?

Adding Fuel Consumption And Fuel Cost Calculator (gas Calculator) to your Wordpres website is fast and easy! Find the page to which you want to add the calculator, go to edit mode, click 'Text', and paste the code to there.

Other calculators in category other

Calculate how much money you can make with streaming royalties with our free online calculator

How much money artists make in Spotify? This Spotify money calculator helps you to calculate an estimation of earnings.

Use this free online text repeater to repeat any text. Works with apps: WhatsApp, Telegram Messenger, Facebook and SMS!

Our free hours calculator tells you precisely how many hours and minutes you have worked!

This tool can be used to calculate the characters contained in a text and display them.

This is an online tool that converts any number to words.

This month counter is a simple tool that can be used to determine the exact number of months between two dates.

Use this calculator to convert Roman numerals to numbers, and to convert numbers to Roman numerals!

To calculate the tip per person and the total cost per person, the Tip Calculator takes into account the cost of the service, the number of people, and the chosen tip percentage.

This is a virtual dice roller that can mimic any number of faces and generate random numbers simulating a dice roll based on the number of faces and dice

Calculate how long it will take to charge an electric car or hybrid car using with this calculator. Estimate time for a partial charge or to full capacity.

The crosswind calculator can assist you to find the headwind, crosswind, and tailwind components for the blowing winds.

This calculator calculates your weight on other planets and will show you how much you would weigh if you were to land on another planet in our Solar System.

The MPG Calculator (also known as the miles per gallon calculation) is a handy tool that can help you calculate your fuel consumption.

This test grade calculator is an essential tool for setting a scale of grading.

This online name picker allows you to choose a random name from any list or draw multiple names randomly from the list. It can be used for raffles, team selection, random prize distribution, and many other purposes.

This online letter generator can be used to generate random letters using the English alphabet. This online generator accepts custom input. You can use it to generate random letter sequences from any alphabet.

You can quickly determine what time it is in military times with our military time converter, also known as an Army Time Converter.

The calculator will determine the Easter date for any particular year.

Are you a coffee drinker? If so, then you'll love our coffee calculator. It will help you determine the optimum amount of coffee to drink each day in order to achieve the desired results.

This calculator helps you figure out how many balloons you need to inflate to reach the desired altitude!

The Population Density Calculator is a handy tool that allows you to determine population density in a specific area.

The Remainders in China Theorem refers to a system that contains congruences, and multiple simultaneous modular systems. The problem lies in calculating the number of elements that remain and how to solve it. 

Our QR code generator makes it super simple to create personalized QR codes for your business or personal needs. Just enter the information you want to encode and voila! You'll have your own QR code in no time. Whether you want to promote your brand, upcoming events, or products, our generator can help you easily connect with your customers and share important information.

Gas Calculator – Fuel Costs & Mileage Estimate

This tool helps you estimate the cost of gas for your trip based on distance and fuel efficiency.

How to Use the Gas Calculator

This gas calculator helps you to estimate the total cost and fuel requirements for a trip. You just need to input the following parameters:

  • Distance: The total distance of the trip in miles.
  • Fuel Efficiency: Your vehicle’s fuel efficiency in miles per gallon (MPG).
  • Price per Gallon: The price of gas per gallon in dollars.
  • Units per Tank: The capacity of your fuel tank in gallons.

Click the “Calculate” button to see the results which include:

  • Total fuel required for the trip (in gallons).
  • Total cost of gas for the trip (in dollars).
  • Total number of full fuel tanks required for the trip.

Limitations

Use cases for this calculator, estimate fuel costs for a road trip.

Planning a road trip? A gas calculator helps you estimate your fuel costs based on your vehicle’s fuel efficiency, the distance you intend to travel, and current gas prices. By inputting these details, you can make informed decisions on budgeting and potentially adjust your travel plans to save more on fuel.

This tool not only gives you a realistic picture of your trip expenses but also allows you to compare the costs of different routes. Understanding your fuel consumption helps you allocate your travel budget wisely, ensuring you enjoy your journey without unexpected financial surprises.

Calculate Fuel Efficiency of Your Vehicle

Want to know how efficient your car really is? By entering the total miles driven and the amount of gas consumed, a gas calculator can provide you with a miles-per-gallon (MPG) rating. This insight allows you to recognize your vehicle’s efficiency and make necessary changes to improve it.

Budgeting for Monthly Fuel Expenses

Keep your finances in check by leveraging a gas calculator to project your monthly fuel costs. By inputting daily commute distances, fuel prices, and your vehicle’s efficiency, you can determine a realistic estimate of your monthly fuel budget.

Assess the Impact of Driving Habits on Fuel Consumption

Your driving habits significantly influence how much fuel you consume. Utilize a gas calculator to analyze different scenarios such as aggressive acceleration or maintaining steady speeds to see how your choices affect overall fuel efficiency.

Determine Cost Savings with Alternative Routes

Considering multiple routes for your daily commute? A gas calculator enables you to evaluate the fuel costs associated with different paths taken. By entering the distance of various routes, you can choose the one that will save you the most on fuel.

Plan for Seasonal Fuel Cost Changes

Fuel prices fluctuate with the seasons, and being prepared can save you money. A gas calculator can assist you in planning for seasonal changes by allowing you to input expected seasonal miles traveled alongside historical gas prices.

Evaluate Vehicle Purchase Options

Thinking of buying a new car? A gas calculator can help you compare different vehicle options based on their fuel efficiency ratings and your average driving patterns. By analyzing fuel costs relative to the vehicles you are considering, you can make a more informed purchasing decision.

Monitor Fuel Consumption Over Time

Tracking your fuel consumption can reveal insights about both your driving habits and your vehicle’s performance. A gas calculator allows you to regularly log your fuel purchases and distance driven, generating reports that help you see long-term trends.

Analyze the Costs of Different Vehicles for a Fleet

Managing a fleet involves calculating various fuel costs for multiple vehicles. A gas calculator allows you to input different fuel efficiencies and distances traveled for each vehicle and determine overall costs, helping you make strategic decisions for your fleet’s future.

Calculate the Environmental Impact of Your Fuel Usage

Your choice of vehicle and driving habits contribute significantly to your carbon footprint. Using a gas calculator, you can estimate how much CO2 emissions result from your fuel consumption, empowering you to make more eco-friendly transportation choices.

Other Resources and Tools

  • MPG Calculator – Accurate Fuel Efficiency Tool
  • Fuel Cost Calculator – Save Money on Trips
  • Mileage Calculator – Fast & Accurate Travel Tool
  • MPH Calculator – Instantly Convert Speed
  • MPGe Calculator – Find Your Car’s Efficiency

Even the planning part of your adventure should be fun

Even the planning part of your adventure should be fun

Route from A to B and discover what you love in between. Plan better trips, collaborate with friends, and enjoy the process.

Estimate your fuel costs

Estimate your fuel costs

Save at the pump with Roadtrippers.

How to estimate your travel costs

Did you know that Roadtrippers can help you estimate your fuel costs for your next road trip? Get started by entering your vehicle information in your profile.

  • How do you estimate fuel costs?
  • Can I edit the MPG for my vehicle?

Plan your next road trip

One-tank road trips.

5 one-tank road trips from Los Angeles, California

5 one-tank road trips from Los Angeles, California

5 one-tank road trips from Boston, Massachusetts

5 one-tank road trips from Boston, Massachusetts

5 one-tank road trips from Chicago, Illinois

5 one-tank road trips from Chicago, Illinois

5 one-tank road trips from Charlotte, North Carolina

5 one-tank road trips from Charlotte, North Carolina

5 one-tank road trips from Washington, D.C.

5 one-tank road trips from Washington, D.C.

5 one-tank road trips from New York City

5 one-tank road trips from New York City

Turn your road trip into an adventure.

How to plan a road trip

How to plan a road trip

How to plan a road trip: 5 steps to get you ready to hit the road

How to plan a road trip: 5 steps to get you ready to hit the road

10 national parks that are fun for the whole family

10 national parks that are fun for the whole family

trip gas usage calculator

Plan Your Trip Now

Discover the most incredible people, places, and experiences worth the detour.

trip gas usage calculator

Why adventure seekers love Roadtrippers

trip gas usage calculator

"Tears of joy"

“After 5 days of using three maps and five different apps, I found Roadtrippers. I was telling my boyfriend as we sat in the RV and started crying as I described it to him. Happy days.” Olivia T.

trip gas usage calculator

"Absolutely love this app"

"If you go on even one road trip a year it’s worth it. I use it to find new and unusual stuff in my area… LOVE IT!” Lindsey L.

trip gas usage calculator

"Makes planning fun"

“I’m planning a 60-day road trip and this app makes it so much fun and far less work! I couldn’t imagine trying to plan a trip without it now.” David M.

trip gas usage calculator

"Discovered new things"

"Fantastic! Really useful with road trips and with finding things in my city I didn't know existed. Seriously, I recommend it to everyone, I love it!" Nick R.

trip gas usage calculator

The #1 road trip planning tool .main-hero { display: none; } .plan-a-road-trip-button { display: none; } #featuredbar { background: #FFDC4E; } #emojireviews { background: #EAE7F5; }

Discover the most incredible people, places, and experiences worth a detour. Share and collaborate with friends. Have fun planning your next weekend getaway, spring break road trip, or cross-country adventure.

The #1 road trip planning tool

Discover millions of places

Discover millions of places

Find quirky roadside attractions, scenic points, national parks, and more.

The perfect itinerary-maker

The perfect itinerary-maker

Instantly estimate fuel costs with our powerful route planner. Explore places within a set distance from your route, filter and sort by reviews, photos, and more.

Get pre-made trip guides

Get pre-made trip guides

From classic American road trips to the weird and the wonderful, get inspiration from our pre-made trip guides.

Search and book hotels

Search and book hotels

Find the best places to stay along your route, check out reviews and photos, and book the most convenient option.

More reasons to love Roadtrippers

Plan better trips

Plan better trips

Add up to 150 of the best stops to your epic road trips.

RV routing

RV routing Beta

Make a route that's customized for your RV.

No ads

Plan your trip without interruption.

Collaboration

Collaboration

Build incredible journeys with a little help from your friends.

New map styles

New map styles

Go lighter or darker depending on time of day.

Live traffic

Live traffic

Check traffic conditions while on the road.

Amazing deals

Amazing deals

Get special discounts from our travel partners.

Offline maps

Offline maps

Select from our list of offline maps to explore off the grid.

  • Sign up Log in Sign out
  • Log in Sign out

Roadtrippers

Plan your journey, find amazing places, and take fascinating detours with our app.

trip gas usage calculator

If you used to sign in with Roadpass, you should now use the same username and password to log in directly with Roadtrippers above.

We couldn't find an existing Roadtrippers account using that service. Please try signing in with another option.

We need your email address to send you trip itineraries and other updates.

How do you want to plan your trip?

With just a few questions, our newest Premium feature, Autopilot, will plan your next adventure.

trip gas usage calculator

The roadtrip app icon

  • AI Travel Planner
  • UK Petrol Prices
  • Get the app

USA Trip Calculator 🇺🇸

trip gas usage calculator

Embarking on a road trip across the United States is an adventure that promises endless memories and breathtaking sights. However, without proper planning, it can also come with unexpected expenses, especially when it comes to fuel costs. This is where Roadtrip's USA Trip Calculator steps in, offering a tailored solution for travelers seeking to manage their budget effectively while exploring the vast landscapes of the USA.

Why Choose Roadtrip's USA Trip Calculator?

Customized for your journey.

Our USA Trip Calculator is designed with the diversity of American road trips in mind. Whether you're cruising down the Pacific Coast Highway, traversing the historic Route 66, or exploring the scenic byways of New England, our tool provides tailored calculations based on your specific route, vehicle type, and current fuel prices.

Fast and User-Friendly

We know that planning a road trip should be more about excitement and less about hassle. That's why our calculator is designed for speed and ease of use. In just a few steps, you'll have a clear estimate of your trip's fuel costs, allowing you to budget effectively and spend more on experiences.

Always Accessible

The USA Trip Calculator is web-based, making it accessible from anywhere at any time. Whether you're at the planning stage at home or making adjustments on the road, our tool is available on any device, ensuring you have the information you need, when you need it.

Up-to-Date Information

Fuel prices can vary greatly across the United States, and they change frequently. Our calculator uses real-time data to provide the most current prices, ensuring your trip estimates are as accurate as possible.

The Roadtrip App: Elevate Your Road Trip Planning

While the USA Trip Calculator is a great start, the Roadtrip app brings your trip planning to a whole new level:

  • Interactive Map-Based Planning : Use our app's interactive map to plot your route, discover points of interest, and calculate distances accurately.
  • Vehicle Specific Calculations : Enter your vehicle's make and model to get specific fuel efficiency data, making your cost estimates even more precise.
  • Local Fuel Prices : Get updated fuel prices for your entire route, helping you plan your refueling stops wisely and save money.
  • Emission Estimates : For eco-conscious travelers, the app provides estimates of your trip's carbon emissions, helping you to make more sustainable travel choices.

How to Plan Your USA Road Trip for Maximum Savings

  • Plot Your Route : Start by mapping out your journey, including all the major stops you plan to make. This helps in calculating the total distance of your trip accurately.
  • Update Fuel Prices : Input the latest fuel prices, or let our app do it for you in real-time. This step is crucial for an accurate cost estimate.
  • Enter Your Vehicle Details : Providing specifics about your vehicle ensures the calculator can accurately determine your fuel efficiency.
  • Calculate : With all the details in place, hit calculate to receive an instant estimate of your trip's fuel costs.

Frequently Asked Questions

Q: How accurate is the USA Trip Calculator? A: Our calculator is highly accurate, provided you input the latest fuel prices and accurate vehicle information. For a more comprehensive planning tool, including live fuel prices and route optimization, the Roadtrip app is the ideal companion.

Q: Is there a fee to use the USA Trip Calculator? A: No, our calculator is completely free to use. For travelers seeking enhanced features and real-time updates, the Roadtrip app offers a full suite of planning tools.

Q: What additional features does the Roadtrip app offer? A: Beyond fuel cost calculations, the app offers route planning with interactive maps, live fuel price updates, vehicle-specific efficiency data, and carbon emission estimates. It's everything you need for a well-planned and budget-friendly USA road trip.

Planning a road trip across the United States doesn't have to be daunting or expensive. With Roadtrip's USA Trip Calculator and the comprehensive Roadtrip app, you have all the tools necessary to plan your journey efficiently, save on fuel costs, and focus on making unforgettable memories. Download the app today and start planning your dream road trip with confidence and ease.

trip gas usage calculator

Canada's 10 worst-selling vehicles in 2024's first-half

Drivers find advanced vehicle technologies 'continually annoying': j.d. power study, porsche drops canada-exclusive 50th anniversary 911 turbo sneaker, ridiculous vehicle: 6 of the most outrageous motorhomes, 2025 lincoln aviator reserve's twin turbos provide ‘oomph’ for passing power | reviews, fuel trip calculator: calculate your fuel trip costs instantly.

Input your vehicle details, the price of gas and how many kilometres you drive into our calculator and instantly find out the cost of your trip

You can save this article by registering for free here . Or sign-in if you have an account.

Article content

With gas prices changing every day (and in every place), it can be difficult to know just how much your daily commute and other trips are costing you.

Don't navigate the car buying road alone!

Join our thriving community on social media and connect with other car searchers and enthusiasts.

Fuel Trip Calculator: Calculate Your Fuel Trip Costs Instantly Back to video

Our fuel trip calculator can help! Using fuel efficiency data from Natural Resources Canada, the calculator can estimate how much you’re spending on gas each day — or how much you’ll spend on gas for your next road trip.

Save Money on Fuel Trips with a Top-Rated Fuel Trip Calculator

New: compare new and past models with the driving vehicle comparison tool ..

If you’re looking to cut down how much you spend on gas, Natural Resources has tips for more fuel-efficient driving:

• Accelerate gently

• Drive at a steady speed (50-80km per hour is the most efficient range for many vehicles)

• Coast to decelerate

• Avoid idling

• Avoid carrying unnecessary weight

• Limit the use of air conditioning and other powered accessories

• Limit all-wheel and four-wheel drive

Data for the calculator comes from Natural Resources Canada, which publishes fuel efficiency figures for most makes and models of cars sold in Canada. The calculator assumes a combination of city and highway driving for determining fuel efficiency, so costs will be higher if you drive primarily in a city, where fuel efficiency tends to be lower.

Sign up for our newsletter Blind-Spot Monitor and follow our social channels on X , Tiktok and LinkedIn to stay up to date on the latest automotive news, reviews, car culture, and vehicle shopping advice.

  • The Longest Day: Driving across Newfoundland in a 2024 Chevy Silverado | Reviews
  • Ontario's Drive-In Movie Theatres: What to expect, and what to bring
  • Lorraine Explains: 3 Dangerous things you might do on a summer road trip
  • 11 of the Best Canadian road trips to take this summer
  • 2024 F1 Canadian Grand Prix: Event and Product Guide

Postmedia is committed to maintaining a lively but civil forum for discussion. Please keep comments relevant and respectful. Comments may take up to an hour to appear on the site. You will receive an email if there is a reply to your comment, an update to a thread you follow or if a user you follow comments. Visit our Community Guidelines for more information.

Affordable EVs

Small trucks

Popular Crossover SUVs

Practical 3-row SUVs

Minivans for the whole family

Compact Cars

Luxury SUVs

Affordable AWD SUVs

All things automotive: breaking news, reviews and more. Wednesdays and Saturdays.

  • There was an error, please provide a valid email address.

A welcome email is on its way. If you don't see it, please check your junk folder.

The next issue of Driving.ca's Blind-Spot Monitor will soon be in your inbox.

We encountered an issue signing you up. Please try again

Best Car Accessories Every Driver Should Buy

There's lots of aftermarket gear out there, but get these add-ons first—they'll make your daily drive more comfortable and safe

Best Trailer Accessories and Gear for Summer 2024

Best trailer accessories and towing equipment for those getting away from it all – and taking it with them.

Best retrofit Apple CarPlay and Android Auto units

You don't need to buy a new car to add Apple CarPlay or Android Auto.

Best Camping Gear for Summer 2024

Equipment for those of us hitting the great outdoors this summer

Best Car Wax—the top rated car waxes online

There are a lot of options when it comes to car wax. To make things easy for you, here are the top rated car waxes online.

This website uses cookies to personalize your content (including ads), and allows us to analyze our traffic. Read more about cookies here . By continuing to use our site, you agree to our Terms of Service and Privacy Policy .

Edit your picks to remove vehicles if you want to add different ones.

You can only add up to 5 vehicles to your picks.

Looks like you've reached your saved article limit!

You can manage your saved articles in your account and clicking the X located at the bottom right of the article.

trip gas usage calculator

Trip Fuel Cost Calculator

Our trip fuel cost calculator will tell you how much it will cost you to drive over a certain distance, based on the current fuel price, your vehicles fuel efficency and the distance you need to travel.

How to use our trip fuel cost calculator

We’ve made it easy to see how much a trip will cost you if you drive. Simply enter the distance you need to drive (in kilometres), you vehicles fuel efficiency (in litres per 100km) and the current fuel cost per litre. The calculated results will tell you how much fuel you will use for the trip and how much the trip will cost you in total.

Image 1 Trip Fuel Cost Calculator

Click here to check the current fuel price.

Whatsapp Image 2022 11 02 At 14.24.14 Trip Fuel Cost Calculator

Recommended Articles

A Guide To Downsizing Your Home: Embrace Change And Save

A Guide To Downsizing Your Home: Embrace Change And Save

5 Ways Businesses Can Benefit From Renewable Energy 

5 Ways Businesses Can Benefit From Renewable Energy 

Pet Nutrition: Feeding Your Furbaby For Optimal Health

Pet Nutrition: Feeding Your Furbaby For Optimal Health

Looking For A Pet-Friendly Adventure? We’ve Got A List   

Looking For A Pet-Friendly Adventure? We’ve Got A List   

Claiming A Solar Tax Rebate For Solar Panel Investments In South Africa 2024

Claiming A Solar Tax Rebate For Solar Panel Investments In South Africa 2024

Subscribe to our newsletter.

Fuel Cost Calculator

Want to know how much your next trip will cost for fuel? Just input a few details into our fuel cost calculator and you’ll get an instant fuel cost calculation and fuel consumption calculation for your one-way or return journey in the UK.

Fuel Needed (Litres)

Fuel Cost (Estimated)

trip gas usage calculator

How to use our fuel cost calculator

Our fuel cost calculator is extremely easy to use, just use the input box to enter the price you’re paying per litre of fuel , your vehicle’s MPG (miles per gallon) figure, and the distance you intend to drive.

What does MPG mean?

In a nutshell, MPG means how many miles a car can go for every gallon of fuel. MPG is usually given as a number, and it can be used to compare the fuel efficiency of different vehicles.

The higher the MPG rating, the more efficient a car is , so choosing a vehicle with a high MPG can help you save money on fuel over time.

How our fuel cost calculator works

Our calculator uses a very simple formula to determine how much you will have to pay at the pumps for your journey. We use the formula: (c ost per litre x distance) ÷ vehicle MPG x 4.546.

How our calculator determines the fuel quantity required

Again, our calculator uses a very simple formula to calculate the amount of fuel needed for the journey. We use the formula: distance ÷ vehicle MPG x 4.546 .

Who needs a fuel and mileage cost calculator?

Anyone who travels a lot, either for work or pleasure can use our fuel and mileage cost calculator to see how much it would cost to get from A to B and back.

Whether you’re going on a weekend getaway or driving up and down the country for work, this tool can help you to budget better by letting you know exactly how much you have to pay at the pumps.

How to improve your vehicle’s fuel efficiency and save money on fuel

fuel cost calculator

With fuel prices on the rise, it is becoming increasingly important to find ways to improve your vehicle’s fuel efficiency.

Whether you have a car or van, there are several small adjustments that you can make that will help to reduce your fuel usage and save you money over time.

1. Check your tyre pressure regularly

Having the right tire pressure is essential for getting the most out of your fuel economy.

Underinflated tires cause more drag and decrease how efficiently your car runs. Make sure to check your tire pressure regularly and top them up as needed.

2. Reduce unnecessary weight in your car

It may not seem like much, but those extra few pounds can add up quickly when it comes to reducing your mileage.

Remove any unnecessary items from the boot of your car, such as sports equipment or heavy tools that you don’t use often. Every little bit helps.

3. Change your oil regularly

When oil gets too dirty, it can reduce engine performance and lead to decreased fuel efficiency. It is recommended that you get an oil change every 3-5 months (depending on the type of oil used) so that your engine stays clean and operates at its optimum level of performance.

4. Use cruise control whenever possible

Cruise control helps maintain consistent speeds which translates into improved mileage since you don’t have sudden starts and stops or fluctuating speeds while driving.

So if you are going on a long drive or even to another town, cruise control can be a great way to save some money on fuel.

5. Drive at steady speeds

Driving at steady speeds helps conserve fuel because when you accelerate quickly it uses up more fuel than when acceleration occurs slowly over time. Try driving at a steady speed whenever possible in order to maximize fuel efficiency.

6. Take care of your engine

Taking care of your engine is one of the best ways to ensure maximum fuel efficiency for your vehicle. Change air filters regularly and make sure all fluids are topped off so that it runs smoothly and efficiently.

7. Avoid idling

Idling your vehicle for extended periods of time wastes a lot of fuel and can significantly reduce fuel efficiency. Whenever possible, try to turn off the engine when you’re stopped instead of letting it idle.

8 . Avoid high speeds

Driving at higher speeds can decrease your fuel efficiency significantly. Whenever possible, try to keep your speed below the posted speed limit in order to maximize fuel efficiency.

9. Use eco mode

Most modern cars come with an eco mode, which you can use to help reduce fuel consumption and get better mileage.

This mode helps reduce engine power and alters your transmission shift points in order to conserve fuel.

10. Drive smarter

Last but not least, smart driving is the best way to reduce fuel usage and save money in the long run.

Smart driving techniques include accelerating slowly, avoiding sudden braking and idling, using cruise control, and following the speed limit.

By driving more efficiently you can reduce your overall fuel costs while also being kinder to the environment.

Click on a star to rate it!

Average rating 4.9 / 5. Vote count: 2870

No votes so far! Be the first to rate this post.

Fuel Cost Calculator

  • Fuel Cost Calculators
  • MPG Calculator

COMMENTS

  1. Fuel Economy Trip Calculator

    In Step 2, you will enter the trip details including starting point, intermediate stops, and destination. You will be able to modify the route by dragging the route line on the map. The Trip Vehicles section above will be updated with the cost of fuel for the trip.

  2. Gas Trip Calculator. Find lowest fuel prices & save

    You can gain access to insider knowledge to save money by using the GasBuddy gas calculator. Find the cheapest gas stations on your route with this easy-to-use gas estimator for your trip. Discover how this simple tool can estimate your total trip cost, gas mileage, gallons used, and the savings you'll experience today. All you have to do is ...

  3. Fuel Cost Calculator

    Fuel Cost Calculator. This calculator can estimate fuel cost according to the distance of a trip, the fuel efficiency of the car, and the price of gas using various units. The price of gas may go up or down, but it's always a major expense for most drivers. The average American driver spends about $3,000 per year on gas, according to the ...

  4. Cost of Driving Calculator

    Cost to drive between cities. Travelmath provides an online driving cost calculator to help you determine how much you'll spend on gas for your next road trip. You can enter airports, cities, states, countries, or zip codes to compute the cost of driving between locations. Driving distances are calculated using actual driving directions if they ...

  5. AAA GAS COST CALCULATOR

    Premium Fuel Research. Top Trends. Contact AAA. Today's AAA National Average $3.421. Price as of 8/17/24. AAA GAS COST CALCULATOR. Today's AAA. National Average. $3.421.

  6. Trip Fuel Cost and Consumption Calculator

    Fuel consumption calculation. We calculate the total fuel required to cover the distance with your vehicles fuel economy number and then multiply that with the gas price to find the total fuel cost for the trip. Select the fuel economy unit used in your country from the options provided viz., miles per gallon (mpg), kilometers per liter (kmpl ...

  7. Fuel Cost Calculator

    At fuel cost calculator, you can use our free gas estimator to help you estimate the total costs on gas and plan accordingly. How the fuel cost calculator works? The fuel cost calculator uses the trip distance, miles per gallon, and the current gas price to calculate the total cost when you travel from one location to another. 1.

  8. Gas Calculator

    Our gas estimator operates on a very simple premise: Determine the distance you are about to travel. Let's say 295 km. Find out what's your fuel economy. Let's use 8 l/100 km. To work out how much fuel you will use in total, divide your distance by 100 (because we are looking at the fuel use every 100 km), so: 295 / 100 = 2.95 and then multiply ...

  9. Fuel Calculator ⛽

    In order to calculate the amount of fuel for a given trip using our fuel cost calculator or otherwise, you need to know the total distance you will be covering and the expected average fuel consumption of your vehicle. It works the same way for cars, trucks, buses, vans, SUVs, and even boats and planes. ...

  10. Gas Estimator

    Use Cases for This Calculator Calculating Gas Cost for a Road Trip. Enter the total distance of your road trip and your vehicle's fuel efficiency to estimate how much you'll spend on gas. Plan your budget effectively and ensure you have enough funds for the journey. Determining Gas Consumption for Daily Commute. Input the distance you ...

  11. Free Gas Cost Calculator

    Road trip gas calculator. Use this calculator to easily see how much a car trip will cost in gas or petrol money. Just enter your distance, fuel price and car milage. Download the free app to be able to: 🌎 Find distances on a map. 🔎 Search and compare cars. 💰 Uses local fuel prices.

  12. Trip Fuel Cost Calculator

    How to Calculate Trip Fuel Cost. The basic formula for calculating trip fuel costs is as follows: Trip Fuel Cost = Distance ÷ Fuel Economy × Fuel Price. However, the method for solving the trip fuel cost formula depends on which fuel economy rating method you use. I will cover 4 of the most common methods below.

  13. Gas Calculator

    Use the Gas Calculator! Planning a road trip, a delivery, or a dispatch? Get toll charges, fuel expenses, total travel costs, state miles, and toll miles. Find the cheapest toll routes and rates whether paying with E-ZPass, toll transponders, cash, or license plate tolling across the United States.

  14. Fuel Consumption And Fuel Cost Calculator (gas Calculator)

    Gas mileage calculator. This free gas mileage calculator estimates your fuel cost, fuel efficiency and gas price instantly. This free fuel consumption calculator estimates the fuel cost of your trip based on average fuel consumption, trip distance, and fuel price! Use this gas calculator to find out consumption and price of the gas instantly!

  15. Gas Calculator

    How to Use the Gas Calculator. This gas calculator helps you to estimate the total cost and fuel requirements for a trip. You just need to input the following parameters: Distance: The total distance of the trip in miles. Fuel Efficiency: Your vehicle's fuel efficiency in miles per gallon (MPG). Price per Gallon: The price of gas per gallon ...

  16. How to calculate gas cost for road trips

    Get started by entering your vehicle information in your profile. The fuel price is automatically set to the US monthly average. We check the average price weekly and use that along with your MPG and fuel type settings to provide an estimate for your trip. "After 5 days of using three maps and five different apps, I found Roadtrippers.

  17. Fuel Cost Calculator for Road Trips (Estimate Gas Cost)

    Car Fuel Cost Calculator. Use this gas calculator to estimate the cost of fuel for your road trip. You can easily adapt the fuel cost calculator to suit your needs. Select the correct option from each drop-down menu then enter the trip distance, fuel efficiency of your vehicle, gas price in your area, and currency of choice.

  18. USA Trip Calculator

    With Roadtrip's USA Trip Calculator and the comprehensive Roadtrip app, you have all the tools necessary to plan your journey efficiently, save on fuel costs, and focus on making unforgettable memories. Download the app today and start planning your dream road trip with confidence and ease. Use our trip calculator to easily see how much gas you ...

  19. Fuel Trip Calculator: Calculate Your Fuel Trip Costs Instantly

    Input your vehicle details, the price of gas and how many kilometres you drive into our calculator and instantly find out the cost of your trip. Nathan Griffiths, Vancouver Sun, Driving. Published ...

  20. Trip Fuel Cost Calculator

    Simply enter the distance you need to drive (in kilometres), you vehicles fuel efficiency (in litres per 100km) and the current fuel cost per litre. The calculated results will tell you how much fuel you will use for the trip and how much the trip will cost you in total. Select Your Fuel Type. Click here to check the current fuel price.

  21. Mileage Calculator

    The mileage calculator is easy to use. Simply add your current location - postcode or place - into the A category, and details of your destination into the B category. The overall driving distance will be displayed in miles and kilometres, and the driving time will also be shown. There is also a fuel calculator, that enables drivers to work ...

  22. Fuel Cost Calculator

    How our fuel cost calculator works. Our calculator uses a very simple formula to determine how much you will have to pay at the pumps for your journey. We use the formula: (cost per litre x distance) ÷ vehicle MPG x 4.546.

  23. Shafik's Columbia: 13 months and 13 days of a campus spiraling into crisis

    A University spokesperson announced that all students occupying Hamilton would be expelled as the protesters drew the attention of the White House , which condemned the occupation and protesters' use of the word "intifada." [Read more: In Focus: When Hamilton Hall became 'Hind's Hall' ] Congressional Democrats wrote a letter to the ...