Triplicate

Demurrage and Detention Explained: Meaning, Free Time and How to Calculate the Charges

Demurrage is charged when a full container stays inside the terminal beyond its free time; detention is charged when you keep the carrier's container outside the terminal beyond its free time. To calculate either, count the days in that phase the way the carrier's tariff counts them, subtract the free days and multiply the remaining days by the daily rate of each tier. In the United States, a demurrage or detention invoice must be issued within 30 calendar days of the date the charge was last incurred, or the billed party does not have to pay it (46 CFR 541.7).

Checked against official sources: 2026-10

At a glance

DemurrageCharged for holding the carrier's container inside the terminal, port or depot beyond the free time
DetentionCharged for holding the carrier's container outside the terminal, port or depot beyond the free time
Combined (merged) free timeOne free time for the whole period inside and outside the terminal
StorageCharged for using the terminal or depot space beyond its free time; can be billed separately, also for shipper-owned containers
Import clockFrom discharge at the port (or gate-in full at an inland depot) until the empty is returned
Export clockDetention from empty pick-up to full gate-in; demurrage from gate-in until loading on the ship
US invoice deadlineWithin 30 calendar days from the date the charge was last incurred, or the billed party need not pay (46 CFR 541.7)
US dispute windowAt least 30 calendar days from the invoice date to ask for mitigation, refund or waiver (46 CFR 541.8)

Demurrage and Detention Explained: Meaning, Free Time and How to Calculate the Charges

Demurrage, detention, combined free time and storage

The words differ slightly by carrier and port, so read the carrier's own demurrage and detention tariff. Maersk's published terms are a typical example: demurrage is payable when the merchant holds the carrier's container inside the terminal, port or depot beyond the agreed free time; detention is payable when the merchant holds it outside the terminal, port or depot beyond the free time; and combined demurrage and detention uses one free time for the whole period inside and outside.

Storage is a different charge: it pays for the terminal's or depot's space and can be billed by the terminal on top of the carrier's demurrage, including for containers the shipper owns. In the United States, container use charges are often called "per diem", and the FMC's rules treat per diem charges as demurrage or detention.

When the clock starts and stops

Free time runs from a set event to another set event. In Maersk's terms:

How to calculate demurrage and detention

Find four things in the tariff, service contract or arrival notice: the free days, the daily rates and the days each rate applies to (tiers), whether the first day counts as day 1, and whether weekends and public holidays are excluded. Then:

United States: FMC billing rules (46 CFR 541)

Since 2024, ocean carriers, marine terminal operators and NVOCCs that bill demurrage or detention in the United States must follow the Federal Maritime Commission's billing rule in 46 CFR part 541:

When charges may be unreasonable in the US

The FMC's interpretive rule on demurrage and detention (46 CFR 545.5) looks at whether the charges serve their purpose, which is to give an incentive to move cargo and return equipment promptly. Detention charged when empty containers cannot be returned, for example because the depot will not accept them, is likely to be found unreasonable, and the FMC also considers how charges handle cargo availability, the notice that cargo is available and government inspections. If you are charged in those situations, keep the evidence, such as refused appointments or terminal notices, and use it in your dispute.

How to avoid demurrage and detention

Demurrage in charter parties

In chartering, demurrage means something else: under BIMCO's Laytime Definitions for Charter Parties 2013, it is an agreed amount payable to the shipowner for delay to the ship once the laytime, the time allowed for loading or discharging, has expired. Despatch is the opposite, an amount the owner pays if loading or discharging finishes early. This note is about container demurrage and detention.

Step by step

  1. Find the free days, daily rates, tiers and counting rules in the carrier's tariff, service contract or arrival notice.
  2. Note the discharge date, the pick-up (gate-out) date and the empty return date, or the export equivalents.
  3. Work out the last free day for pick-up and for empty return, and plan customs clearance and trucking before it.
  4. Return the empty to the named depot and keep the gate receipt or EIR.
  5. Check each invoice against your dates and the tariff, and dispute it within the stated window.

Documents you usually need

Common problems and how to avoid them

The container is held for a customs examination and demurrage keeps running.

What to do: File the entry and documents before arrival, ask the carrier for extra free time or a waiver, and in the US cite the FMC's position on government inspections (46 CFR 545.5).

The depot refuses the empty container and detention keeps running.

What to do: Keep proof of the refused return, such as appointment screenshots or depot notices, and dispute the detention: the FMC treats detention charged when empties cannot be returned as likely unreasonable.

A US demurrage invoice arrives two months after the container was returned.

What to do: Check the dates: if it was issued more than 30 calendar days after the charge was last incurred, you are not required to pay it (46 CFR 541.7).

The original bills of lading arrive after the ship, so the cargo cannot be released.

What to do: Send originals by courier as soon as they are issued, or agree on a telex release or sea waybill for future shipments.

Sources

  1. 46 CFR Part 541: Demurrage and Detention Billing Requirements Electronic Code of Federal Regulations (eCFR)
  2. Demurrage and Detention Billing Requirements: Properly Issued Invoices Provision Set Aside by Court (final rule) Federal Maritime Commission, Federal Register
  3. Interpretive Rule on Demurrage and Detention Under the Shipping Act (46 CFR 545.5) Federal Maritime Commission, Federal Register
  4. Terms for Detention and Demurrage A.P. Moller - Maersk
  5. Laytime Definitions for Charter Parties 2013 BIMCO

Rules change often. This note is practical guidance based on the sources above, not legal advice. Confirm current requirements with the authority, your importer or a licensed customs broker before you ship.

Share with a colleagueWhatsAppLinkedInX

Trade notes

Had this problem? Share how you solved it

Tell us what happened and what worked. We read every message. With your permission we may add your case to this note, without your name or company.

Common questions

How do you calculate demurrage?

Count the days the full container stayed at the terminal, from discharge to pick-up, the way the carrier's tariff counts them, subtract the free days, and multiply the chargeable days by the daily rate of each tier. Detention is calculated the same way, from pick-up to empty return.

What is the difference between demurrage, detention and storage?

Demurrage is for keeping the carrier's container inside the terminal beyond the free time, detention for keeping it outside the terminal beyond the free time, and storage is the terminal's charge for its space. Some carriers combine demurrage and detention into one free time.

What is per diem in container shipping?

In the United States, per diem is a common name for the daily charge for using a carrier's container outside the terminal. The FMC's rules treat per diem charges as demurrage or detention, so the same billing rules apply.

Who pays demurrage and detention?

The party the carrier bills under its terms, usually the consignee or importer at destination and the shipper at origin. Who bears the cost between seller and buyer depends on the sales contract and the Incoterms rule.

Can I dispute a demurrage or detention invoice?

Yes. Check the dates, free time, rates and counting rules against the tariff and your gate records. In the United States, you have at least 30 calendar days from the invoice date to request mitigation, refund or waiver, and an invoice missing required information or issued late need not be paid.

More free tools

Triplicate is free and keeps getting better. Found it useful? Support Triplicate ♥