Detention

Ocean Freight

Detention is a daily charge a shipping line bills when a customer keeps its container outside the port terminal longer than the agreed free time. For imports, it runs from gate-out of the full container until the empty is returned; for exports, from pickup of the empty until the loaded container is delivered back to the terminal.

How detention works

Shipping lines own or lease their containers and want them back in circulation quickly. When a full import container leaves the terminal on a truck, the consignee gets a set number of free days to unload it and return the empty box to the depot the carrier names. Each day beyond that is charged as detention, sometimes called per diem. On exports, the same logic applies in reverse: the clock starts when the shipper picks up an empty container and stops when the loaded box is gated in for shipment.

Like demurrage, detention is usually charged in tiers, with daily rates rising the longer the container is kept. Rates depend on the carrier, country, container size and type; reefers, open tops and flat racks cost more than standard dry containers. Free time can be negotiated, and carriers may offer separate demurrage and detention allowances or a combined “D&D” period that the customer can split between terminal time and outside time.

Detention is especially relevant for inland deliveries. When a container travels hundreds of kilometers from the port to a warehouse in another country, the round trip, border crossings and unloading time can easily use up the free days. Typical causes of detention include:

  • long inland transit or waiting at borders;
  • slow unloading at the consignee’s site;
  • keeping the container as temporary storage;
  • the designated empty depot being far from the delivery point or temporarily refusing returns;
  • export cargo not ready when the empty container was collected.

To limit detention, plan unloading before the container arrives, check where the empty must be returned, and agree longer free time for inland or cross-border deliveries. If containers regularly travel far inland, ask whether the carrier allows returns to an inland depot closer to the delivery address. Shippers using their own containers (SOC) do not pay carrier detention at all.

In road freight, “detention” is sometimes used for a truck waiting time charge when loading or unloading takes longer than the agreed time. That is a different charge, set by the haulier’s terms rather than the shipping line’s tariff.

Example

An importer in Skopje receives a 20-foot container discharged at Thessaloniki. The carrier allows 7 days of detention free time from gate-out. The truck crosses into North Macedonia, the container waits two days for customs release, the consignee unloads it over a weekend, and the empty reaches the Thessaloniki depot 10 days after it left the port.

With an illustrative detention rate of €30 per day, the 3 extra days cost €90. Negotiating 10 or more free days for this inland route before booking, or unloading faster, would have avoided the charge.

FAQ

Is detention the same as per diem?

In container shipping, yes. Per diem is another name for the daily charge for keeping a carrier's container outside the terminal beyond free time.

When does detention start and stop?

For imports it starts when the full container leaves the terminal and stops when the empty is returned to the designated depot. For exports it runs from empty pickup until the loaded container is gated in at the port.

How can I avoid detention charges?

Negotiate enough free time for the full inland round trip, prepare unloading before the container arrives, return the empty promptly to the right depot and keep gate-in and gate-out records to check invoices.

Related terms

Calculate Cost