Demurrage vs Detention: What Shippers Actually Pay
Demurrage vs detention explained: what triggers each charge, real cost examples, and how European shippers use TMS alerts to avoid both.
Demurrage vs detention is the line item that starts more freight invoice disputes than almost anything else, and most shippers still use the two words interchangeably. They shouldn't. Demurrage is the fee a shipping line charges when a loaded container sits inside the port terminal past its free time. Detention is the fee charged when that same container sits outside the terminal, on your premises or on the road, past its own free time. Carriers lump both under one shorthand: D&D.
The confusion gets worse in Europe, because road freight has its own, completely separate "detention" concept: driver waiting time at the loading dock, governed by national transport codes rather than shipping lines. If you manage transport spend across ocean and road, you're really tracking three different clocks, not two.
The one-line test: location decides which charge applies
Forget the cause of the delay. The only question that matters is where the container physically sits when the free time runs out. As DF Alliance puts it, demurrage charges apply when you leave a container at the terminal beyond the allotted free time, while detention fees occur when a container is held off-terminal beyond the allowed free time. Inside the gate, it's demurrage. Outside the gate, it's detention.
You'll also see the term "per diem" used in carrier tariffs and invoices. Per diem charges refer to any charges incurred on a per-day basis, and in the shipping industry it's often used interchangeably with detention charges. It's rarely used this way on European road-freight paperwork, so if you see "per diem" on an invoice, assume it means container detention, not driver waiting time.
| Charge type | Where it applies | Triggered by | Typical free time |
|---|---|---|---|
| Demurrage | Inside the port terminal | Full container not picked up in time | 4-5 days for consignees to claim cargo |
| Detention (container) | Outside the terminal, at consignee or on return | Container not returned by empty return date | 3-5 days before detention fees kick in |
| Driver detention (EU road freight) | At the loading or unloading dock | Truck held beyond contractual free time | Typically 1 hour under French rules |
A worked example: Rotterdam to a Duisburg distribution centre
Picture a full container arriving at the Port of Rotterdam on a Maersk service, with five days of free time before pickup. If your customs clearance or trucking slot slips and the container sits four extra days in the terminal, that's demurrage. Demurrage rates can range anywhere from US $75 to US $300 per container per day, so four days at the higher end of that range already adds up to $1,200 before the box has even left the port.
Now the container gets trucked to a distribution centre near Duisburg. If it takes three extra days beyond the agreed return window to get the empty container back to the depot, that's detention, calculated separately. Detention fees typically range from $50 to $100 per day, so three days there adds another $150 to $300. Two charge types, two separate clocks, one avoidable invoice line running into the thousands, on a single container, in a single lane.
The European road-freight cousin: driver detention time
This is where shippers with mixed ocean and road exposure get caught out. Container detention and road-freight driver detention share a name but nothing else. Road detention is charged per truck at the loading or unloading dock, and it's governed by national law rather than a carrier's tariff sheet.
France offers the clearest codified example. Waiting times at loading and unloading are governed by Articles L.3222-7 and following of the French Transport Code, and beyond the contractual free time, typically one hour, the carrier may charge detention fees, usually billed per hourly bracket once that free time expires. Compare that one-hour window to the 4-5 days of free time on a container sitting in Rotterdam, and you can see why the two "detention" concepts get confused despite operating on entirely different timescales.
There's a compliance layer on top of this too. Under the EU's road transport working time framework, waiting periods where the foreseeable duration is not known in advance by the mobile worker count toward the driver's working time, not as free rest. That means a long, unpredictable wait at your dock isn't just a detention invoice risk. It can push a driver against tachograph and working-time limits, which is exactly the kind of thing carriers now flag back to shippers as a Mobility Package compliance issue, not just a cost issue.
Why the fee often lands on the shipper's desk anyway
Contracts rarely make liability obvious. Typically, the party responsible for the delay that results in these charges ends up paying, and it could be the shipper, the consignee, or even a third-party logistics provider, which is why reviewing your contract agreements is essential for clarifying responsibility. In practice, even when a carrier technically owes the charge under the bill of lading, the invoice usually surfaces on the shipper's freight reconciliation desk first, and someone has to prove whose delay caused it before it gets disputed or passed on.
How TMS-level visibility prevents both
Manual tracking is the actual root cause of most D&D exposure, not port congestion or bad luck. The fix is straightforward but requires discipline: negotiate longer free time into carrier contracts up front, pre-clear customs before the vessel arrives, use dock-appointment scheduling so trucks aren't queuing past their contractual free hour, and stop tracking free-time countdowns in spreadsheets.
Automated alerts matter here because the numbers moved fast. With demurrage and detention charges having surged by 104% in 2021, automated alerts that flag container arrivals or approaching free time deadlines at least 24 hours out can make a real difference, simply by giving your team time to adjust a pickup or return schedule before the clock runs out.
European shippers running a multi-carrier transport management system can usually build these alerts directly into carrier connectivity they already have, rather than buying a separate point solution. Platforms like Cargoson, Transporeon, Alpega and MercuryGate all sit in this category for road freight visibility, while for heavy ocean-container volumes, dedicated demurrage-tracking tools are worth a look too, and a comparison of container-tracking software vendors is a reasonable starting point if that's your primary exposure.
FAQ
Is demurrage the same as detention?
No. Demurrage is charged for a container inside the port terminal past free time. Detention is charged for a container held outside the terminal, at your site or on return, past its own free time.
What does "per diem" mean in shipping?
Per diem refers to charges incurred on a per-day basis, and in the shipping industry it's often used interchangeably with detention charges, though it's rarely used this way in European road-freight contracts.
Does European road freight have its own detention rules?
Yes, separate from container detention entirely. In France, for example, beyond the contractual free time, typically one hour, the carrier may charge detention fees for waiting at the loading or unloading dock.
Who pays demurrage, the shipper or the receiver?
It depends on the contract and who's responsible for the delay. The party responsible for the delay that results in the charges ends up paying, whether that's the shipper, the consignee, or a third-party logistics provider, which is why the underlying contract terms matter more than the Incoterm alone.
Can a TMS actually prevent these charges?
It can catch most of them before they accrue. Automated alerts flagging container arrivals or approaching free time deadlines give your team the lead time to act instead of finding out about an overdue container from an invoice three weeks later.