Short answer
Detention vs demurrage is the most commonly confused charge pair in container shipping. Demurrage is billed while a loaded container sits inside the terminal past its free time. Detention is billed while the carrier's equipment is outside the terminal, in the shipper's or trucker's hands, past its free time.Both are per-diem charges, both run on clocks that start at specific gate events, and both usually land on an invoice weeks after the move. That gap is why they fill freight inboxes: the shipper sees two similar line items, cannot tell which clock ran or why, and emails the broker or forwarder who now has to reconstruct the timeline from terminal records.
The approach that fails here is the KB-only bot that pastes the textbook distinction and stops. The customer asking about a demurrage line does not need a definition, they need to know which clock ran on their container, from which event, and for how many days. A definitional answer without the shipment record attached just generates the follow-up email, plus a dispute.
Detention vs demurrage at a glance
| Dimension | Demurrage | Detention |
|---|---|---|
| Where the container is | inside the terminal or port | outside the terminal, with the shipper, consignee, or trucker |
| What is being charged | terminal time for a loaded container past free days | use of the carrier's equipment past free days |
| When the clock starts | at discharge from the vessel (imports) | at gate-out, when the container leaves the terminal |
| When the clock stops | at gate-out pickup | when the empty container is returned |
| Who typically bills it | the ocean carrier or the terminal | the ocean carrier, as equipment owner |
Aide, the AI-first customer service platform, answers charge-confusion threads from the shipment record once your TMS is connected through an API or an MCP server: which clock ran, from which event, and for how long. Every reply is logged, and anything contesting the charge goes to a person. See Aide for logistics and freight for how this runs in a freight inbox.