← Back to blog

Demurrage vs Detention: Who Charges It and What to Check

Demurrage runs while the full box sits at the terminal; detention runs while you keep it outside. See where each clock stops and what a US invoice must show.

2026-11-25 · 9 min read

Your container of tires arrived, and a few weeks later an invoice shows up with "demurrage" on one line and "detention" on another. They sound like the same thing. They aren't, and knowing which is which tells you which part of the delay the charge covers and who to ask about it.

The short answer

Both charges are about holding a container longer than the time you were allowed. The difference is where the container is while the clock runs.

  • Demurrage: the container is still inside the terminal, port or depot.
  • Detention: the container is outside the terminal, at your warehouse, on a truck, or waiting to go back empty.

Maersk's terms put it this way. Demurrage is "compensation payable when the Merchant holds Carrier's Container inside the terminal, port or depot beyond the agreed amount of Free Time." Detention is the same, but "outside the port, terminal or depot." The US Federal Maritime Commission (FMC) gives a shorter version on its website: "Detention is charged for extended use of intermodal equipment and demurrage accrues when a container exceeds free time on a marine terminal."

Where each clock starts and stops

For an import, Maersk's terms set out the periods like this:

ChargeClock startsClock stops
DemurrageContainer discharged from the vessel at the port of dischargeContainer leaves the port ("gate out delivery")
DetentionContainer leaves the port ("gate out delivery")Empty container returned to the agreed terminal, port or depot ("gate in empty")

Import container timeline showing demurrage from vessel discharge to gate-out and detention from gate-out to empty return

For example, once free time runs out, a container that clears customs slowly and sits at the terminal builds up demurrage. A container that leaves the port quickly but stays at your warehouse for unloading builds up detention instead.

For exports, the order flips. Maersk's terms say detention runs "from the gate-out of the empty Container until gate-in of the Container into the agreed terminal, port or depot," and demurrage runs from that gate-in "until the Container is loaded on board a vessel."

Maersk's terms also list "Combined Demurrage and Detention" and say that it and the separate charges "are alternatives." Maersk says whether they are invoiced separately or combined is set out on its website, so read the invoice heading before comparing it with someone else's.

How free time fits in

Neither charge starts on day one. Maersk defines free time as "the period agreed between the Carrier and the Merchant for which Demurrage, Detention, Combined Demurrage and Detention and Storage (if applicable) shall not be paid by the Merchant."

The key word is agreed. How many free days you get, whether they count calendar days or working days, and the daily rate after that are set by your contract and the carrier's published terms. Maersk's terms say the amounts apply "as per the published tariffs" unless agreed otherwise. We don't quote day counts or rates here because they differ by carrier, port and contract.

Carriers also set their own rules for situations like customs holds. One example: Hapag-Lloyd's US tariff guide (May 2026) says that "when a container is put on customs hold for no fault of the customer, Hapag-Lloyd stops the Line Demurrage/Detention clock and restarts it when the hold is released." That is one carrier's US policy, not a general rule, so check your own carrier's terms.

Who charges it

In the US, the FMC rule on D&D invoices (46 CFR Part 541) covers invoices from three kinds of company: the "ocean common carrier, marine terminal operator, or non-vessel-operating common carrier" that issues the invoice. In plain terms, that is the shipping line, the terminal, or an NVOCC (a forwarder that issues its own bill of lading).

The same rule defines the charges broadly: "any charges, including 'per diem' charges, assessed by ocean common carriers, marine terminal operators, or non-vessel-operating common carriers related to the use of marine terminal space (e.g., land) or shipping containers, but not including freight charges."

Two things follow from that:

  1. Per diem is not a third, separate category under the FMC rule. The FMC definition includes "per diem" inside demurrage or detention. If an invoice uses "per diem," ask the billing party which period it covers.
  2. Freight is not part of it. D&D is about time with the terminal space or the box, not the cost of moving the cargo.

Who ends up paying depends on your contract, your Incoterms and who is named as the billed party. Our Incoterms 2020 guide explains where each rule hands over responsibility between seller and buyer.

What a US D&D invoice must show

If your container moved through a US port, the FMC rule lists the minimum information a demurrage or detention invoice must include (46 CFR 541.6). Use it as a checklist:

Which container and why you

  • Bill of lading number(s) and container number(s)
  • For imports, the port(s) of discharge
  • "The basis for why the billed party is the proper party of interest and thus liable for the charge"

Which days

  • Invoice date and due date
  • "The allowed free time in days," and the start and end dates of free time
  • For imports, the container availability date; for exports, the earliest return date
  • "The specific date(s) for which demurrage and/or detention were charged"

How much and on what basis

  • Total amount due
  • The rule the daily rate comes from, for example "the tariff name and rule number, terminal schedule, applicable service contract number and section, or applicable negotiated arrangement"
  • The specific rate or rates

How to dispute

  • A contact for questions or requests for "fee mitigation, refund, or waiver"
  • A link, QR code or similar pointing to the documents you need to send
  • The timeframes for asking and for the billing party to answer

The invoice must also carry two statements from the billing party: that the charges follow the FMC's D&D rules, and that its own performance "did not cause or contribute to the underlying invoiced charges."

The rule also sets deadlines. A billing party "must issue a demurrage or detention invoice within thirty (30) calendar days from the date on which the charge was last incurred" (541.7), and must give you "at least thirty (30) calendar days from the invoice issuance date to request mitigation, refund, or waiver" (541.8). It also says that leaving out any required item "eliminates any obligation of the billed party to pay the applicable charge" (541.5).

We're quoting the regulation, not giving legal advice. For a disputed bill, start with the contact on the invoice and your forwarder.

Outside the United States

The FMC rules apply to US ocean shipping. For shipments to Latin America, Africa or Europe, there is no FMC checklist to lean on. Read the carrier's D&D terms for that country, the free time on your booking or contract, and the local terminal's storage rules. Maersk's terms, for example, say whether storage is invoiced separately "is set out on a per country basis."

How this differs from booking and release

Demurrage and detention start after the ship arrives. Two earlier decisions affect them but are separate topics:

FAQ

What is the difference between demurrage and detention?

Demurrage covers the time a container stays inside the terminal, port or depot beyond free time. Detention covers the time you keep it outside. Maersk's import terms switch from one to the other when the container leaves the port.

Demurrage vs detention vs per diem: are they three charges?

Under the US FMC definition, "per diem" charges are included in demurrage or detention, not a separate class. Some invoices still use the term, so ask which period it covers.

Who charges detention when an importer returns an empty container late?

The party that issues the invoice: under the US rule, an ocean carrier, a marine terminal operator or an NVOCC. Who must pay depends on your contract and who is named as the billed party.

What can a US importer do if a demurrage invoice looks wrong?

Check it against the FMC list in 46 CFR 541.6, including free time dates, the container availability date and the tariff rule. Then use the dispute contact on the invoice. The rule gives at least 30 calendar days from the invoice date to request mitigation, refund or waiver.

How many free days do I get?

It depends on your contract and the carrier's published terms for that port. Ask your carrier or forwarder before the ship arrives.

Sources

SourceWhat it supportsChecked
46 CFR Part 541, Demurrage and Detention (eCFR)US definition incl. per diem, billing party, required invoice information, invoice and dispute deadlines2026-11-25
46 CFR 545.5 (eCFR)FMC interpretive rule on D&D practices2026-11-25
FMC, Detention and DemurrageFMC's one-line distinction2026-11-25
Maersk, Terms for Detention and DemurrageDefinitions, free time, import and export clock periods, combined D&D2026-11-25
Maersk, What is Detention and Demurrage?Charge for keeping containers longer than agreed2026-11-25
Hapag-Lloyd, Detention and Demurrage Tariff Guide for the United States, May 2026 (PDF)Example of one carrier's customs-hold policy2026-11-25