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.