ShipCalculators.com

Ocean Freight Cost Calculator: Base Rate + Surcharges

Build the all-in ocean freight cost from a quoted base rate and the standard surcharges: BAF, CAF, THC at both ends, ISPS, and documentation, per revenue ton for LCL or per box for FCL.

FreightSurchargesCharteringCommercial
Loading calculator…

Formula, assumptions, and limits

To compute all-in ocean freight, apply the CAF percentage to the base rate, add the per-unit surcharges, multiply by the quantity, and add the flat fees:

C=(Rbase(1+c)+Sunit)q+SflatC = \left( R_{\text{base}} \cdot (1 + c) + S_{\text{unit}} \right) \cdot q + S_{\text{flat}}

R_base - base ocean freight per revenue ton (LCL) or per container (FCL). c - CAF as a fraction of the base rate, where the trade applies one. S_unit - the per-unit surcharges summed: BAF + THC origin + THC destination + ISPS. q - revenue tons or container count. S_flat - flat documentation, B/L, and filing fees per shipment.

The model mirrors how a liner quotation is constructed, but quotations differ in what the base already includes: an “all-in” rate folds BAF and sometimes THC into one figure, while a “base plus accessorials” quote itemizes everything. Enter each component exactly as itemized on your quote and leave the rest at zero; double-counting BAF into an all-in base is the most common way this arithmetic goes wrong.

Not modeled: demurrage and detention at either end, inland haulage, customs duties and brokerage, insurance, and the situational surcharges (PSS, GRI, congestion, war-risk) that carriers announce per trade and window. Those are real money but quotation-specific; add them through the flat-fee field when they appear on yours. Rates themselves are market data that move weekly: this tool computes your quote, it does not predict the market.

How to use this calculator

  1. Select the pricing unit: per revenue ton for LCL, or per 20-foot or 40-foot container for FCL.
  2. Enter the base ocean freight rate and the quantity.
  3. Enter the per-unit surcharges as itemized on the quotation: BAF, THC at origin and destination, and ISPS.
  4. Enter CAF as a percentage of the base if the quote carries one, plus any flat documentation or B/L fee.
  5. Read the all-in total, the per-unit cost, and the surcharge share; the chart breaks the per-unit cost into its components.

Where each input comes from

  • Base rate and surcharges: the quotation’s rate breakdown, line for line. Enter only what the quote itemizes; an all-in base already contains its BAF.
  • Quantity in revenue tons: for LCL, the W/M figure (1 m³ or 1,000 kg, whichever is greater); compute it from carton dimensions with the CBM calculator. The same greater-of logic that sets chargeable weight on other modes sets the revenue ton here.
  • Container count: the booking; the FCL vs LCL calculator settles how many boxes, and of which size, the consignment needs.
  • THC, both ends: the quotation’s local-charges section; the THC calculator totals the booking’s terminal handling lines when they are quoted per box rather than per unit.

Surcharge glossary

CodeNameBasisWhat it covers
BAFBunker adjustment factorper unit, revised with fuel pricesMarine fuel cost pass-through
THCTerminal handling chargeper unit, each endContainer lifts and yard moves at the terminal
ISPSSecurity surchargeper unitPort-facility security costs under SOLAS XI-2 / ISPS Code
CAFCurrency adjustment factor% of base rateExchange-rate exposure on non-USD trades
DOC / B/LDocumentation feeflat per shipmentBill of lading issuance and admin
PSSPeak season surchargeper unit, announcedSeasonal demand peaks
GRIGeneral rate increaserate revisionCarrier-announced base-rate step
EU ETSEmissions surchargeper unit, EU tradesCarrier’s EUA cost under the EU emissions trading system since 2024

The first five rows are the ones a standing quotation normally itemizes and the ones this calculator carries as named fields; the rest arrive by announcement and belong in the flat or per-unit extras when quoted. On EU trades, the ETS line is best estimated separately with the EU ETS EUA liability calculator and entered here as a per-unit extra.

Worked example

A 40-foot box quoted at USD 1,400 base, BAF USD 210, THC USD 165 origin and USD 195 destination, ISPS USD 14, no CAF, documentation USD 55. Two boxes. Per-unit surcharges sum to USD 584, so each box runs 1,400 + 584 = USD 1,984, the pair USD 3,968, plus USD 55 of documentation: USD 4,023 all-in. The surcharge share, documentation included, is 30.4%: nearly a third of the invoice never touches the base rate, which is why comparing carriers on base rate alone misleads. The same structure at a USD 800 post-slump base pushes the surcharge share to 43% with identical surcharges: the stickiness of the accessorial lines against a moving base is the pattern to watch.

All figures above are illustrative quote inputs, not market rates.

Common errors

  1. Double-counting BAF. If the base is quoted all-in, BAF is already inside it; itemizing it again inflates the total. Match the fields to the quote’s own line items, one for one.
  2. One THC instead of two. Terminal handling is levied at both ends. A comparison that carries origin THC only is structurally low by one port’s tariff.
  3. Applying CAF to the surcharges. CAF percentages apply to the base ocean freight, not to the accessorial lines; this calculator applies it to the base only.
  4. Mixing pricing units. A per-RT BAF against a per-box base produces nonsense; every per-unit field here follows the unit selected at the top.
  5. Treating the quote as the landed cost. Duties, brokerage, inland legs, and insurance sit outside ocean freight; an all-in ocean figure is one line of a landed-cost build, not the result.

About This Ocean Freight Cost Calculator

An ocean freight rate is the base price of carrying one container or revenue ton on a lane, plus surcharges: BAF for fuel, THC at each terminal, ISPS for port security, and documentation fees. The invoice is only predictable when each layer is computed the way the carrier computes it. This calculator is for shippers, forwarders, and analysts who hold a quotation and need the all-in figure: it takes the base rate per revenue ton or per container, the per-unit surcharges (BAF, THC both ends, ISPS), a CAF percentage where applicable, and flat documentation fees, and returns the total, the per-unit cost, and the surcharge share of the invoice.

The structure follows standard liner-quotation practice: percentage adjustments apply to the base, per-unit accessorials multiply with the quantity, and shipment-level fees add once. The ISPS line traces to the port-security regime under SOLAS chapter XI-2 and the ISPS Code; the BAF line is a fuel pass-through dating to the 1970s oil shocks, reformulated around low-sulphur benchmarks when IMO 2020 repriced marine fuel; the EU ETS surcharge on European trades is the newest member of the family and is best computed on its own calculator and entered here as an extra.

The chart stacks the components of the per-unit cost so the anatomy of the invoice is visible: on cheap-rate trades the surcharge layers visibly rival the base. Reading a quote through this breakdown is the fastest way to spot a missing THC end, a double-counted BAF, or a documentation fee that grew between quotations.

Further reading

Frequently asked questions

How are ocean freight rates calculated?
Take the base rate per container or revenue ton, apply the CAF percentage if the trade carries one, add the per-unit surcharges (BAF, terminal handling at both ends, ISPS security), multiply by the quantity, and add flat documentation fees. The result is the all-in ocean freight; duties, inland legs, and insurance sit outside it.
How much does it cost to ship a 40-foot container?
There is no standing answer: rates are quoted per lane and move weekly with capacity and demand. Benchmark levels are published by the Drewry World Container Index, the Freightos Baltic Index (FBX), and Xeneta; take a live quote for your lane and use this calculator to build the all-in figure from it.
What surcharges are added to ocean freight rates?
The recurring ones are BAF (bunker adjustment factor, fuel), THC (terminal handling charges, levied at both origin and destination), ISPS (port security), documentation or B/L fees, and on some trades CAF (currency adjustment factor). Seasonal and situational additions include PSS (peak season surcharge) and GRI (general rate increase).
What is BAF in shipping?
BAF, the bunker adjustment factor, passes fuel-price movement through to the shipper. Carriers publish it per container or per revenue ton by trade lane and revise it as bunker prices move. The pass-through dates to the 1970s oil shocks; carriers overhauled their BAF formulas around low-sulphur fuel benchmarks when the IMO 2020 sulphur cap repriced marine fuel.
What is THC and who pays it?
Terminal handling charges cover the container's lift and yard moves at the port. They are levied at both ends; who pays each end follows the Incoterm and the liner term of the quote, which is why an all-in comparison must state THC scope explicitly.
Why is the surcharge share of ocean freight so high?
On low-rate trades the fixed surcharges dwarf the base: a few hundred dollars of THC, BAF, and documentation on a sub-thousand-dollar box can put the surcharge share above 40%. The base rate moves with the market while surcharges are stickier, so the share swings with the rate cycle.

In short

Add up an ocean freight quote: base rate plus BAF, CAF, THC, ISPS, and documentation surcharges, per revenue ton (LCL) or per container (FCL).

Learn the theory Ocean Freight Cost and Surcharges