Quick answer: Demurrage is charged when a full import container stays inside the port terminal after its free time runs out. Detention, sometimes called per diem, is charged when you keep the carrier’s container outside the terminal, at your warehouse or on the road, beyond the free time allowed. Both are daily charges, and both can be avoided with good planning.
Demurrage and detention, often shortened to D&D, are among the most common surprise costs in ocean freight. They’re easy to confuse because they sound alike and are both tied to containers sitting idle. The difference is where the container is sitting.
Demurrage vs. detention at a glance
| Demurrage | Detention | |
|---|---|---|
| Where the container is | Inside the terminal | Outside the terminal |
| Imports | Full container not picked up within free time | Empty container not returned within free time |
| Exports | Full container delivered to the terminal too early, or rolled to a later vessel | Empty container picked up but not returned full within free time |
| Typically charged by | Ocean carrier and/or marine terminal operator | Ocean carrier (truckers may pass on per diem) |
Some carriers combine both into a single “merged” free-time allowance. Check your carrier’s tariff or your contract to see how free days and charges are counted.
Why these charges happen
- Customs holds or exams that keep a container from being released
- Freight not released because charges are unpaid or the bill of lading hasn’t been surrendered
- No trucks, chassis or terminal appointments available
- The receiving warehouse can’t take the container yet
- Slow unloading or slow return of the empty container
What the FMC rules say
The Federal Maritime Commission’s demurrage and detention billing rule (46 CFR Part 541), in effect since May 2024, requires ocean carriers and marine terminal operators to include specific minimum information on D&D invoices. They must issue invoices within 30 days of when the charges were last incurred. NVOCCs have 30 days from receiving the carrier’s invoice. Billed parties have at least 30 days to request a fee mitigation, refund or waiver.
In September 2025, a federal appeals court set aside one section of the rule, the provision on who may be billed, and the FMC removed it from the regulations. The invoice content and timing requirements remain. If an invoice is missing required information or arrives late, ask your forwarder about disputing it.
How to avoid demurrage and detention
- Clear customs before the vessel arrives. File your entry and ISF on time so the container is released on arrival. See our ISF guide.
- Pay freight and release documents early so the carrier’s release isn’t the bottleneck.
- Know your free days for both demurrage and detention before the ship arrives, and negotiate extra free time in your contract if you regularly need it.
- Book drayage in advance. Line up the trucker, chassis and terminal appointment. Read what drayage involves.
- Use a pre-pull to a nearby yard when your warehouse can’t receive the container yet; yard storage is often cheaper than terminal demurrage.
- Return empties quickly to the location the carrier designates, and keep proof of return.
- Check every invoice against the free time, dates and container numbers.
How Alison Transport can help
With ocean freight, customs brokerage and trucking coordinated by one team, we work to get your containers cleared, picked up and returned within free time. Operating 24/7, we keep you up to date on the movement of your shipments. Get a quote or call 516-536-6500.
Frequently asked questions
What is the difference between demurrage and detention?
Demurrage applies while a container sits inside the terminal beyond its free time. Detention applies while the carrier’s container is outside the terminal beyond its free time, such as at your warehouse.
What is per diem in shipping?
Per diem is a daily charge for using a container or chassis beyond the free time allowed. In U.S. trucking it often refers to detention charges that are passed through to the shipper.
Who pays demurrage and detention?
It depends on your contract and Incoterms, but charges usually fall on the importer (consignee) for import shipments and the exporter for export shipments, often billed through the forwarder or NVOCC.
Can demurrage and detention charges be disputed?
Yes. Under FMC rules, billed parties have at least 30 days to request mitigation, a refund or a waiver, and the billing party must attempt to resolve the request. Invoices that lack required information or are issued late may not have to be paid.
This guide is general information, not legal advice. Regulatory details are summarized from FMC rules and announcements; check the FMC for current requirements.