Freight cost calculator
A freight cost calculator adds up what a load costs and the price to quote. Add the linehaul, the fuel surcharge and any extra charges, then divide by one minus your margin. A 500 mile load at $2.20 per mile with fuel and extras costs $1,375.00, and a 15% margin quotes it at $1,617.65.
Enter the miles and the rate you pay the carrier, add fuel and extra charges, and set your margin to see the cost of the load and the price to quote. This free calculator is an estimate. No signup.
- Formula
- Cost = linehaul + fuel surcharge + extra charges. Price to quote = cost / (1 - margin).
- Example
- 500 miles at $2.20 per mile, $0.40 per mile of fuel, $75 of extras: cost $1,375.00, quote $1,617.65 at a 15% margin
- Best for
- Freight brokers, dispatchers and shippers pricing a load. Free, no signup, from Hey Bubba!, the AI back office for trucking.
- Last updated
- November 18, 2026
The loaded miles and the linehaul rate you pay the carrier.
Both are optional.
The share of the price you want to keep. Leave it blank to see the cost only.
We add up the cost of the load, then divide by one minus your margin to get the price.
The margin is a share of the price. A 15 percent margin is a markup of about 17.6 percent on the cost.
Cost of the load = linehaul + fuel + extra charges = $1,375.00
Price = cost / (1 - margin) = $1,375.00 / (1 - 15.0%) = $1,617.65
Price to quote = cost of the load / (1 - margin), where cost = linehaul + fuel surcharge + extra charges.
Meet Bubba,
AI Back-Office
Automation for Fleets
Dispatch, paperwork & compliance - automated.
Just say Hey Bubba!
Quote at different margins
The same $1,375.00 load at five margins. The margins are examples.
| Margin | Price to quote | Profit | Same as a markup of |
|---|---|---|---|
| 10% | $1,527.78 | $152.78 | 11.1% |
| 12% | $1,562.50 | $187.50 | 13.6% |
| 15% | $1,617.65 | $242.65 | 17.6% |
| 18% | $1,676.83 | $301.83 | 22.0% |
| 20% | $1,718.75 | $343.75 | 25.0% |
How to use the freight cost calculator
Have the carrier's rate and any fuel or extra charges ready.
Enter the loaded miles
Type the miles from pickup to delivery.
Enter the linehaul
Pick a rate per mile or a flat rate for the whole load, and type the rate.
Add fuel and extra charges
Type the fuel surcharge per mile and any detention, lumper or other charges for the load. Both are optional.
Set your margin
Type the share of the price you want to keep. Leave it blank to see the cost only.
Read the cost and the quote
See the cost of the load, the cost per mile, your margin in dollars, and the price to quote.
Freight cost estimator: how the cost of a load is calculated
The cost of a load is the linehaul plus everything added to it. The linehaul is the miles times the rate per mile, or one flat price. The fuel surcharge is charged per mile, and extra charges such as detention, lumper fees or a liftgate are added as dollars.
To quote a price, divide the cost by one minus your margin. Margin is a share of the price, so the same dollars of profit look smaller as a margin than they do as a markup on the cost.
See also: Fuel surcharge calculator · Freight rate per mile calculator · Load profitability calculator
Margin vs markup on a freight quote
Both describe profit, but they start from different numbers, which is a common source of mistakes when quoting.
- Margin = profit / price. A 15% margin on a $1,617.65 quote is $242.65.
- Markup = profit / cost. The same $242.65 on a $1,375 cost is a 17.6% markup.
- To keep a target margin, divide the cost by one minus the margin. Don't just add the percent to the cost.
Using the quote with your lane and your customer
The result is a clear starting point built from your own numbers. Market conditions, the customer, the lane and the equipment can all move the price you actually win the load at, so use the margin as your floor and adjust from there.
FAQ'sFrequently Asked Questions
Add the linehaul, the fuel surcharge and any extra charges. For a full truckload the linehaul is usually the miles times a rate per mile, or a flat price for the lane. Our $1,375.00 example is a 500 mile truckload. LTL freight is priced differently, by weight, class and distance.
Divide the total cost of the load by the loaded miles. The $1,375.00 example load over 500 miles is $2.75 per mile, and the quote of $1,617.65 is $3.24 per mile.
Broker margin is the price you charge the customer minus what you pay the carrier, divided by the price. On the example load, a $1,617.65 quote against a $1,375.00 cost leaves $242.65, which is a 15% margin.
Add the linehaul, the fuel surcharge and any extra charges. The linehaul is the miles times the rate per mile, or a flat rate. A 500 mile load at $2.20 per mile with $0.40 per mile of fuel surcharge and $75 of extra charges costs $1,375.00.
Divide the cost of the load by one minus your margin. At a 15% margin the $1,375.00 load is quoted at $1,617.65, which keeps $242.65 of the price.
Margin is the share of the price you keep. Markup is the percent added on top of the cost. A 15% margin is a markup of about 17.6% on the cost, so adding 15% to the cost gives a smaller margin than 15%.
It depends on the lane, the customer, the freight and the market. Use the margin that covers your costs and leaves your target profit, and try a few in the calculator to see the quote each one gives.
It uses only the numbers you type, so the cost and the quote are exactly what you enter. For a rate based on your own costs, use the rate per mile calculator.