Maryland Gas Tax Calculator

See how much Maryland gas tax you pay per fill-up and per mile

Calculate Maryland fuel tax per fill-up or per year. Combines Maryland's 47.1 cents-per-gallon gasoline excise (47.75 for diesel) with the federal excise, and converts to a per-mile cost from your mileage and MPG. Runs in your browser.

How much is Maryland's gas tax?

For the period beginning July 1, 2024, Maryland's gasoline excise tax is 47.1 cents per gallon and its diesel tax is 47.75 cents per gallon. The rate is indexed to inflation and adjusts every July 1, so it changes annually.

Every gallon you pump in Maryland carries both a state and a federal excise tax baked into the price. This calculator separates those two layers and converts them into a cost per fill-up or — using your mileage and fuel economy — a cost per mile driven, so you can see exactly how much of your fuel spend is tax.

How it works

The tax is a flat amount per gallon, so the only question is how many gallons:

gallons (fill-up) = gallons you entered
gallons (annual)  = annual miles ÷ MPG
Maryland excise   = gallons × $0.471 (gas) or $0.4775 (diesel)
federal excise    = gallons × $0.184 (gas) or $0.244 (diesel)
total tax         = Maryland + federal
per mile          = total tax ÷ annual miles   (annual mode)

Because the tax is per gallon, a more efficient car pays less total fuel tax for the same distance — fuel economy directly lowers your tax-per-mile.

Example and notes

A 28-MPG car driven 12,000 miles a year burns roughly 429 gallons. At the combined 65.5 cents-per-gallon gasoline rate that’s about $281 in fuel tax for the year, or just over 2.3 cents per mile. Maryland’s rate resets each July 1 with inflation, so update the figure annually. These are excise taxes only and exclude any general sales tax; verify current rates with the Maryland Comptroller.