August 24, 2026Logistics & documents5 min read

Demurrage vs detention: which clock is running

Mike Liu
Trade Content Specialist

Mike Liu contributes to AeonixTrade's buyer-education library by researching trade terminology, checking source references, and turning shipping, logistics, and quality-control concepts into practical examples.

Demurrage vs detention: which clock is running

Last fact-checked: November 5, 2026.

A typical case

Home textiles, USD 41,200, FOB Shanghai, one 40-foot container by sea to Los Angeles. The box is discharged and available on a Monday. On this booking the carrier's free-time window inside the terminal ends on Thursday. The first truck appointment you can actually get is the following Monday. Gate-out is that Monday.

Timeline of the Los Angeles booking from Monday availability to the later gate-out.

Count the days only after you have the tariff for this bill of lading in front of you. On this booking the tariff counts calendar days and does not skip the weekend, so the last free day is Thursday and the chargeable demurrage days are Friday, Saturday, and Sunday. Three days. The dollars per day are on the carrier's tariff. This page does not quote a rate. Do not budget the shipment from a verbal "seven free days."

Gate-out starts a second clock. The warehouse finishes unloading on Wednesday. The empty is back at the depot on Friday. If detention free time on this same tariff ended on Wednesday, Thursday and Friday are detention days. Add them on the detention line. Do not add them to the three demurrage days and call the total demurrage.

Three charges, not two names

The DCSA shipping glossary uses the split the terminals already argue about. Demurrage is what you pay the shipping line when the container stays inside the terminal or depot past free time. Detention is what you pay the line for keeping the container outside the terminal or depot past free time. In the United States the same outside charge is often called per diem. Storage is the charge for the space, usually billed by the terminal, and it can run on the same days as demurrage. Some terminals fold the two together. Some bill them apart. Sometimes the terminal bills the line and the line puts the storage on your invoice. Read the line, do not reject it because a second line covers a similar date.

Demurrage Detention Storage
Where the box is Inside the terminal or depot Outside, with you or the trucker Occupying terminal, port, or yard space
Who usually bills The shipping line The shipping line The terminal, or the line passing the terminal's charge through
What usually stops it The container leaves, under the rule in the tariff The empty is accepted back at the named depot The space is no longer occupied
The rate See the carrier tariff See the carrier tariff See the terminal schedule or the pass-through on the invoice

Comparison of demurrage, detention and storage by where the box is and who bills.

The Federal Maritime Commission describes the same pair for US trades: demurrage accrues when a container exceeds free time on a marine terminal, and detention is the charge for extended use of the equipment. The interpretive rule issued in May 2020 is the Federal Register text. The later billing rule, published 26 February 2024, is the invoice rule. Neither one is the price on your bill. For a US invoice, use them to see who may be billed and what the invoice is supposed to show. Then match each line to the tariff.

Who has to move before the clock does

Customs release is not the same event as "the box is on a truck." Availability is not the same event as an appointment. FOB Shanghai tells you the seller delivered on board in Shanghai. It does not tell you who pays Los Angeles demurrage. That split is in the tariff and in the sales contract.

Milestone Who you name before arrival What you keep
Arrival and availability Forwarder The notice that states the event the tariff uses as day one
Originals or telex Buyer and seller Surrender status. A box the line will not release still accrues time. See telex release
Customs You and the broker The entry, the hold, and the release
Pickup Trucker The appointment and the gate ticket
Empty return Warehouse and trucker The depot receipt, including a rejection if the depot turned the empty away

Infographic of who must be named before arrival so the free-time clock is owned.

The general order of events after the ship arrives is on the arrival page. This page only adds the clocks. Last free day, gate-out, empty return: three timestamps, two charges.

How to read the invoice

One line at a time. Container number, charge name, who issued it, which tariff or contract, free time granted, the start event, the stop event, the dates billed, and the tier. A tier that steps up is still "see the carrier tariff." If you dispute a line, name the days and the clause. "Please waive all demurrage" is not a dispute.

Checklist of the fields to read on one demurrage or detention invoice line.

Keep the booking, the bill of lading, the availability notice, the customs release, the appointment attempts, the gate ticket, and the empty-return receipt. If a system would not take the empty back, keep the screenshot with the date on it. A complaint filed after the free time is over is weaker than the note you sent the day the system blocked you.

Mistakes

  • Paying a demurrage invoice while the originals are still in China and the terminal was never going to release the box. Fix the document and still count the days. The clock does not pause because the paperwork was your seller's fault, unless the tariff says it does.
  • Adding detention days to demurrage days and negotiating one number.
  • Assuming a weekend does not count. Some tariffs skip it. This one, in the case above, did not. Read yours.
  • Booking the container without a warehouse that can unload inside the outside free time. The ocean rate was the cheap part.

Put the port, the Incoterm, and who clears customs on the RFQ before you accept a free-time promise that nobody has in writing.

Official sources

You’re leaving AeonixTrade

This link opens a third-party website in a new tab. Check the destination before continuing; its content and privacy practices are outside our control.

Submit sourcing request

Can't find what you need?

Start with a product or image link, an approximate quantity and destination. Other details can follow.