---
title: "Truck Trip Fuel Cost Calculator (Diesel, Per Mile)"
description: "Trip fuel cost calculator for truck drivers: gallons, fuel cost and cost per mile from trip miles, miles per gallon and diesel price."
url: https://cdldotguide.com/tools/trip-fuel-cost/
language: en-US
---

# Trip fuel cost calculator

Gallons, fuel cost and cost per mile for a load, from your miles, your truck's mileage and the pump price.

## How it works
- Gallons Trip miles divided by your miles per gallon.
- Fuel cost Gallons times the price per gallon, and the cost per mile.
- What is left With a rate per mile, the tool shows what remains after fuel.

Use your own fuel log for miles per gallon: load, terrain, speed and weather change it a lot.

For planning only, not legal advice. Your state and your carrier may have stricter rules; confirm with your state licensing agency or FMCSA.

## Inputs: Trip fuel cost calculator

Tool `trip_fuel_cost` (WebMCP on this page; described in [tools.json](https://cdldotguide.com/api/v1/tools.json)). Gallons, fuel cost and cost per mile for a load, and what remains after fuel at a rate per mile.

- `miles` (number, required): Trip miles.
- `mpg` (number, required): Miles per gallon of the truck.
- `diesel_price_usd` (number, required): Diesel price per gallon, dollars.
- `rate_per_mile_usd` (number): Pay or rate per mile, dollars (optional).
