GlossaryTopic

Container Detention

Term 49 of 268 · Topic

In one sentence

Detention is the daily charge a shipping line bills the importer or exporter for keeping its container outside the port terminal beyond the agreed free time, until it is returned empty to the designated depot.

Container Detention definition

Detention is the charge a shipping line (ocean carrier) bills for the extended use of its container once it has left the port terminal. It starts accruing when the free time period expires and stops when the empty container is returned to the assigned depot. In practice, it is the cost of having the box "out" for too long: tied up at the importer's facility while it is unloaded, or on its way to the exporter's site to be loaded with the goods.

It is charged per calendar day and per container, at a rate that is usually tiered (more expensive the longer the delay) and that depends on the type of equipment: a reefer (refrigerated) or special equipment pays considerably more than a standard dry container. For the foreign trade team, detention is one of the most common cost leaks and, at the same time, one of the most avoidable, because it almost always stems from internal operational delays. Controlling these charges is part of the management that keeps an International Logistics operation in order.

It should not be confused with demurrage: demurrage is also a charge for excess time, but it applies while the container is still inside the terminal or port. Detention applies once the container has left the port area and is in the customer's possession.

How detention works, step by step

When a shipping line delivers a container for an import or export operation, it does not sell it: it lends it. The box remains an asset of the ocean carrier, which needs to get it back quickly to put it back into circulation. That is why it grants a limited number of free days and, once those are used up, starts charging the implicit rental of the equipment. That charge is detention.

The clock works differently depending on the flow. In imports, the free period starts when the container leaves the terminal for the importer's facility and stops when the empty container is returned to the empty-container depot indicated by the shipping line. In exports, it usually runs from when the exporter picks up the empty container to load it until it delivers it full to the export terminal for loading onto the vessel. If there are delays along the way (an unloading slot that never comes, a staff shortage, incomplete paperwork, a truck that does not show up), the clock does not stop.

Why it matters for the business

Detention is pure cost: it adds no value, it cannot easily be passed on to the end customer, and it hits the operation's margin. In the region, it is a frequent pain point. Think of an importer in Buenos Aires that receives six containers of the same cargo and only has capacity to unload two per day at its warehouse; the other four accumulate detention while they wait their turn. Or an agribusiness exporter in the interior of the country that picks up the empty containers, but rain holds up loading for a few days: every idle container adds to the charge.

On top of that there is a local factor: free time is usually short, and customs clearance times can stretch out because of inspections, the involvement of government agencies or holidays. The combination of short free time and long supply chain times is the perfect recipe for detention to appear almost by default if it is not actively managed.

Free time, tiered rates and negotiation

Free time is not fixed: it is negotiated. An importer with recurring volume can agree with the shipping line or with its freight forwarder on extended periods (for example, 14 or 21 days instead of 7) before booking the shipment. The detention rate, in addition, is almost always progressive: the first days over the limit cost less per day than the following ones. Knowing that table in advance lets you decide, with numbers, up to which day it pays to rush the return and from when the charge becomes truly expensive.

A typical table helps show the difference from related concepts:

ConceptWhere it appliesWho chargesWhat it penalizes
DetentionContainer outside the terminal, in the customer's possessionShipping lineKeeping the equipment beyond the free time
DemurrageContainer inside the terminal or portShipping line or terminalNot picking up the container on time
StorageCargo in the terminal's warehousePort terminalOccupying physical space in the port area

Common mistakes that trigger the charge

  • Not checking the contract's actual free time before the vessel arrives and finding out too late that it was only a few days.
  • Scheduling unloading without first completing customs clearance, so the container arrives but cannot be emptied.
  • Delaying the return of the empty container because the assigned depot is full or far away, an operational detail that goes unnoticed until the invoice arrives.
  • Treating detention as an unavoidable cost instead of measuring it: without visibility into which container is about to run out of free time, nobody prioritizes.

How to control it

The most effective defense is early visibility: knowing, container by container, which day of free time each one is on and when it enters the chargeable zone. That lets you prioritize unloading, return empty containers sooner and negotiate extensions when a delay is foreseen. For an operation with dozens of containers at the same time, tracking this in scattered spreadsheets is what ends up costing a lot; traceability of the times and events of each container is exactly what brings order to this kind of management and keeps detention from becoming a silent drain on margin.

Share
Frequently asked questions

FAQs about Container Detention

What is detention in container logistics?

Detention is the daily charge a shipping line bills the importer or exporter for keeping its container outside the port terminal beyond the agreed free time. It starts accruing when the free days expire and stops when the empty container is returned to the depot indicated by the ocean carrier. It is a cost for the extended use of the equipment, not for the goods.

What is the difference between detention and demurrage?

The difference is the location. Demurrage is charged while the container is still inside the terminal or port, that is, when the customer does not pick it up on time. Detention is charged once the container has left the port area and is in the importer's or exporter's possession, until the empty equipment is returned. Both are charges for excess time, but at different stages of the operation.

How is the detention charge calculated?

It is calculated per calendar day and per container, counting only the days that exceed the free time agreed with the shipping line. The rate is usually tiered, more expensive the longer the return is delayed, and it varies by type of equipment: refrigerated or special containers pay more than a standard dry container. The total is the number of excess days multiplied by the daily rate for each tier.

How can you avoid or reduce detention?

The key is visibility and planning. It pays to negotiate more free days before booking the shipment, especially with recurring volume, to complete customs clearance before the container arrives, to coordinate unloading capacity in advance and to return the empty container as soon as it is emptied. Tracking, container by container, how many free days are left lets you prioritize and act before the charge starts accruing.

Who pays detention, the importer or the exporter?

It depends on the flow and the agreed delivery terms (Incoterms). In imports, the importer usually pays it, since it has the container in its possession while unloading it. In exports, the exporter bears it, since it holds the equipment while loading it. In any case, the party that physically controls the container during the period beyond the free time is the one that pays.

This, applied to your foreign trade

Documentation, customs clearance and shipment visibility in one place, with the customer notified without anyone sending the email. Tell us how you move cargo today.

Keep exploring

Related terms

From the glossary

Related questions

Your industry

International Logistics industry

End to end foreign trade: documentation, customs clearance and shipment visibility in one place.

How we solve it in International Logistics
The full suite
Now that you know what it is, see how it gets solved

Five AI products that work on top of the CRM you already use. They don't replace your system: they add the layer you do by hand today.