Demurrage and detention: two different clocks, one expensive bill
Two different clocks
Demurrage and detention get used interchangeably by people new to ocean freight, but they are charges for two different things, billed by two different parties, running on two different clocks. Demurrage is charged by the terminal, or in some tariffs the carrier, for use of space at the port: a container sitting in the terminal yard past its allotted free time is generating demurrage, whether it is full and waiting for pickup after discharge, or empty and waiting to be loaded before export.
Detention is charged for use of the carrier's equipment, the container and often the chassis, away from the terminal. Once a container leaves the port on a truck, the clock switches from demurrage to detention, and it keeps running until that container is returned, empty, to a location the carrier accepts. The simplest way to hold the distinction in mind: demurrage is a real-estate charge for space at the terminal, detention is an equipment-rental charge for the box once it has left.
Free time, and where the clocks start and stop
Every ocean carrier or terminal contract includes a period of free time, typically a handful of calendar days, before either charge starts accruing. Free time varies by port, by carrier, and often by the specific service contract or tariff a particular shipper is operating under, so it is not one industry-standard number; it has to be checked per move rather than assumed from a previous shipment.
The demurrage clock generally starts on discharge for an import, or on gate-in at the terminal for an export waiting to load, and it stops when the container physically leaves the terminal gate.
The detention clock generally starts the moment a container leaves the terminal on an import move, or, on an export move, when the empty container is picked up from the depot for stuffing, and it stops only when the empty container is returned to an approved return location, not merely when the cargo inside it has been unloaded. A shipper who unloads a container quickly but sits on the empty box for another week is still accruing detention the entire time, because from the carrier's point of view the asset has not actually come back yet.
Because the two clocks hand off at the terminal gate, and can even run at the same time if a container both misses its outbound window and is later returned late, a single container can generate both types of charge on one move, and the two frequently get lumped together on an invoice in a way that hides which one is actually driving the bill.
Why charges spiral
The daily rate for demurrage or detention often looks manageable in isolation; bills spiral because several independent failures tend to compound rather than average out. Chassis shortages at a given port or region mean a container can be fully cleared and ready to move, with nowhere to put it, so it sits generating demurrage for a reason that has nothing to do with the shipper's own paperwork or planning.
Customs exam holds are another common driver: if a container is selected for inspection, whether a routine document review or a physical exam, it cannot leave the terminal until the hold clears, and free time keeps counting down, or has already run out, while everyone waits on a process outside the shipper's control.
Missed pickup appointments compound both of the above. Many terminals require a booked appointment slot to pull a container, and if that slot is missed, whether from congestion, a scheduling error, or simple unavailability of drayage capacity in a tight market, the container waits for the next available slot while the free-time clock keeps running regardless of the reason.
What makes these charges expensive rather than merely annoying is that most tariffs escalate: the daily rate on day eight of demurrage is commonly higher than the rate on day two, on the theory that the terminal wants increasing pressure to clear the box, not just to cover its own storage cost. A shipment delayed five or six days past free time by one of the causes above can rack up charges wildly disproportionate to how briefly it was actually held up.
The practical levers to avoid them
Pre-arrival clearance is the single highest-leverage move available: filing the customs entry before the vessel arrives, using the carrier's advance manifest and estimated arrival data, means the container is legally cleared to move the moment it is discharged, instead of the clearance process itself eating into the free-time window after the ship is already alongside.
Dispatching drayage against the vessel's actual schedule, not the original booking ETA, avoids a common and entirely preventable failure: a trucker scheduled off a date set weeks earlier, while the vessel arrives early or, more often, late, so the appointment either wastes a dispatch or misses the container's real availability window entirely. Watching the vessel's live position and updating the pickup plan against it keeps the appointment aligned with when the box is actually gate-ready.
Watching the free-time clock itself, with a standing alert well before it expires rather than a scramble after it already has, turns demurrage and detention from a bill that arrives as a surprise into a deadline that gets managed like any other. The clock starts on events, discharge, gate-out, that are visible in tracking data well before an invoice is ever cut, so there is little real reason for this to stay reactive.
None of these levers eliminates a chassis shortage or a customs exam selection, both of which sit outside a shipper's control. What they do is keep the controllable side of the clock, how fast clearance happens and how well drayage is timed against the real schedule, from adding avoidable days on top of delays nobody could have prevented in the first place.
