Freight glossaryPortsTruckingFreight PricingContainers

Detention

Definition

Detention is a charge for holding equipment beyond the free time allowed: in ocean shipping, for keeping the carrier's container out of the terminal too long (often called per diem); in trucking, for keeping a truck and driver waiting at a shipper or receiver.

In simple English

Somebody kept equipment longer than the free time allowed. For a container it is the ocean carrier's box; for a truck it is the truck and driver waiting at a dock.

By Waqar Sharif Yar & the RapidShips teamLast reviewed 2026-10-2913 sources

What it means

The same word is used for two different charges, billed by different parties under different rules, so it pays to know which one an invoice means.

The two meanings of detention
Container detention (per diem)Truck detention
What is heldThe ocean carrier's container, outside the terminalThe truck, trailer and driver, at a shipper or receiver
Clock usually startsWhen the container's free days outside the terminal run outAfter the free waiting time in the contract, often 2 hours
Clock usually stopsWhen the empty is returnedWhen loading or unloading is finished and the truck is released
Billed byOcean carrier or NVOCC, under its tariff or contractThe motor carrier, under its rates or contract
Federal rulesFMC demurrage and detention rules (46 CFR parts 541 and 545)No federal definition; set by contract

The rest of this entry takes each meaning in turn. Who pays when a driver waits at a dock, and how to avoid it, is covered in who pays when a truck driver waits.

Detention in shipping: container per diem

On the ocean side, the FMC describes detention as a charge "for extended use of intermodal equipment."[1] Where demurrage is tied to terminal land, detention is tied to the container itself: federal rules cover charges related to the use of marine terminal space or shipping containers, "including 'per diem' charges."[2]

"Per diem" is the name truckers most often see. The Port Authority of New York and New Jersey's truckers guidebook defines it as a fee charged by the steamship line to a trucker for late return of equipment.[7] Under the UIIA, which drayage carriers sign to interchange equipment, each provider's free time and per diem charges sit in its own addendum.[8]

The FMC found the industry has no standard terminology, so its rule defines demurrage and detention broadly to include anything customarily called per diem. It limited the definition to shipping containers to exclude chassis, because depending on context per diem can refer to containers, chassis or both.[6] Detention invoices from ocean carriers must follow the same FMC billing rule as demurrage, including the free time dates and charged dates.[3] The FMC's reasonableness rule also says practices that charge detention when empty containers cannot be returned are likely to be found unreasonable, absent extenuating circumstances.[5]

Carrier rules shape when the clock pauses. Hapag-Lloyd's U.S. guide, for example, starts detention free time the day after customs release when a container is held by customs outside the terminal, and excludes unplanned terminal and depot closures from detention charges.[9]

Detention in trucking: driver waiting time

In trucking, detention is the charge a motor carrier bills when its truck and driver are held at a shipper's or receiver's facility past the free time agreed for loading or unloading. There is no single standard definition. The DOT Inspector General found that most of the industry measures detention as time at a facility beyond the limit in shipping contracts, often 2 hours, and noted that not all shipping contracts include detention pay clauses.[10] FMCSA has said the industry, government and researchers have typically used dwell time over 2 hours to define it.[11]

Each carrier publishes its own terms, and they differ:

  • One truckload accessorial schedule charges detention on tractor time after a standard 2-hour window at pickup or delivery.[12]
  • Another carrier's rules tariff allows 60 minutes free, then charges $100 per hour, rounded to the nearest quarter hour, capped at $600 in 24 hours, with weekends and holidays included.[13]

The OIG estimated that a 15-minute increase in average dwell time raises the expected crash rate by 6.2 percent, and that detention is associated with $1.1 billion to $1.3 billion a year in lost earnings for for-hire truckload drivers.[10]

Why it matters

Mixing up the two meanings is a common billing mistake. Container detention stops only when the empty goes back to where the carrier says; truck detention stops when the truck is released. Unloading a container promptly protects the first, and a dock that is ready at the appointment time avoids the second.

Example

Illustrative only: an importer's drayage carrier picks up a 40-ft container on a Tuesday and drops it at the importer's warehouse. The carrier's tariff gives a set number of detention free days from gate-out. The warehouse cannot unload until the next week, so the empty goes back two days after those free days end, and the ocean carrier bills two days of detention (per diem). Separately, when the driver later returns for a live unload at a different site and waits three hours past the appointment under a contract with 2 free hours, the trucking company bills one hour of truck detention to its customer.

Demurrage vs. detention vs. per diem

  • [Demurrage](term:demurrage). The full container is still on the terminal after free time. Billed by the terminal or ocean carrier.[1]
  • Detention. The container has left the terminal and is kept past its free days. Billed by the ocean carrier or NVOCC.[1]
  • Per diem. Usually another name for container detention, billed to the trucker for late equipment return.[7] It can also cover chassis, which is why the FMC excluded chassis from its definition.[6]

The demurrage vs. detention guide compares the two ocean clocks and how to dispute them.

Frequently asked questions

What is detention in trucking?
Truck detention is a charge for holding a truck and driver at a shipper's or receiver's facility past the agreed free time. Most of the industry measures it as time beyond the contract limit, often 2 hours, and not every contract pays it.[10] Rates and free time vary by carrier; one carrier allows 60 minutes free, then charges $100 an hour.[13]
What is detention in shipping?
In ocean shipping, detention is the charge for keeping the carrier's container outside the terminal beyond its free days, until the empty is returned. The FMC describes it as a charge for extended use of intermodal equipment,[1] and its billing rule requires the invoice to show the free time and the dates charged.[3]
Demurrage vs detention vs per diem: what is the difference?
Demurrage is charged while the full container sits on the terminal after free time; detention is charged while the container is out of the terminal past its free days.[1] Per diem is usually the trucker-facing name for container detention, a steamship line fee for late equipment return,[7] though per diem can also cover chassis.[6]
Is per diem the same as detention?
In most container contexts, yes. The FMC's rules treat per diem charges as part of demurrage and detention.[2] The FMC discouraged using per diem as a synonym because it adds complexity, and noted that per diem can mean container charges, chassis charges or both.[6] Check the invoice to see which equipment is being billed.
Can detention be charged if the empty container cannot be returned?
The FMC says detention practices that apply when empty containers cannot be returned are likely to be found unreasonable, absent extenuating circumstances.[5] A billed party has at least 30 calendar days from the invoice date to request mitigation, refund or waiver.[4]

Sources

  1. Federal Maritime Commission, “Detention and Demurrage,” Government guidance. Accessed October 5, 2026.
  2. Legal Information Institute, Cornell Law School, “46 CFR § 541.3, Definitions (demurrage and detention),” Federal regulation. Accessed October 5, 2026.
  3. Legal Information Institute, Cornell Law School, “46 CFR § 541.6, Contents of invoice,” Federal regulation. Accessed September 2026.
  4. Legal Information Institute, Cornell Law School, “46 CFR § 541.8, Requests for fee mitigation, refund, or waiver,” Federal regulation. Accessed October 2026.
  5. Legal Information Institute, Cornell Law School, “46 CFR § 545.5, Unjust and unreasonable practices with respect to demurrage and detention,” Federal regulation. Accessed October 5, 2026.
  6. Federal Maritime Commission, Federal Register, “Interpretive Rule on Demurrage and Detention Under the Shipping Act (85 FR 29638),” Federal rule. Accessed October 2026.
  7. Port Authority of New York and New Jersey, “Port Truckers Resource Guidebook (revised August 2025),” Port authority guidance. Published August 2025. Accessed October 5, 2026.
  8. Intermodal Association of North America, “UIIA Frequently Asked Questions,” Industry association. Accessed October 14, 2026.
  9. Hapag-Lloyd, “Detention and Demurrage Tariff Guide for the United States (May 2026),” Carrier tariff guide. Accessed October 2026.
  10. U.S. Department of Transportation, Office of Inspector General, “Estimates Show Commercial Driver Detention Increases Crash Risks and Costs, but Current Data Limit Further Analysis (Report ST2018019),” Government report. Published January 31, 2018. Accessed September 30, 2026.
  11. Federal Motor Carrier Safety Administration, Federal Register, “Agency Information Collection Activities; Impact of Driver Detention Time on Safety and Operations (88 FR 58060),” Federal Register notice. Published August 24, 2023. Accessed September 30, 2026.
  12. Union Pacific, “Accessorial Charges and Payment Terms (truckload),” Carrier accessorial schedule. Accessed September 30, 2026.
  13. Heartland Express, “SRG "A": Rules and Accessorial Charges,” Carrier rules tariff. Accessed September 30, 2026.

General operational information, not legal, customs or regulatory advice. Rules and rates change; confirm current requirements with the agency, carrier or contract that governs your shipment.

Look up another freight term

Search every glossary term, answer, guide and freight tool on RapidShips.

Prefer to ask in your own words? Ask the Freight Assistant