Resources
Guide

What are detention charges and how are they calculated?

Listen to this guide
1x
Copy link
Container ship above a demurrage and detention invoice

Key takeaways

Detention charges are daily fees for keeping a shipping line's container outside the terminal after its free time has run out. The clock starts when the container leaves the terminal and stops when it is returned empty. Each chargeable day is billed at the rate in your contract or the carrier's tariff.

  • Detention = chargeable days after the last free day, multiplied by the daily rate for each day, including any rate tiers.
  • It is a different clock from demurrage, which runs while the full container is still inside the terminal.
  • Free time, the counting rules and the rates come from the contract or tariff, not from the invoice.
  • Check every detention invoice by rebuilding it from the contract and the gate-out and empty-return dates.

What are detention charges?

Detention charges are fees a shipping line bills for each day you keep its container outside the terminal after the free time allowed. The clock runs from gate-out, or the event your contract names, until the empty container is returned. The daily rate and free days come from your contract or the carrier's tariff, and the rate often rises in tiers.

On this page, detention means ocean container detention. Truck or driver detention, where a haulier charges for waiting time at a loading dock, is a different charge.

What does detention mean in shipping?

In container shipping, detention is the charge for using the carrier's equipment beyond the agreed free period. Carriers use it to get boxes back into circulation. In some US trades the same charge is called per diem; the US Federal Maritime Commission treats per diem as part of demurrage and detention (46 CFR 545.5).

When do detention charges start?

Detention starts on the first day after detention free time ends, if you still have the container. Free time itself starts on the event your contract names, which on imports is usually the day the full container is gated out of the terminal.

Read three things from the contract before you count:

  • whether free time is in calendar days or working days;
  • whether the gate-out day and the return day count;
  • whether detention has its own clock or shares a combined clock with demurrage.

How are detention charges calculated?

Detention is calculated as the number of chargeable days multiplied by the daily rate that applies to each of those days. Chargeable days run from the first day after free time ends until the empty container is returned. Where the rate is tiered, price each block of days at its own rate and add the blocks together.

Detention = sum of (chargeable days in each rate tier x the daily rate for that tier)

A worked detention example (illustrative only)

The dates, free time and rates below are an example for one import container, so you can see the arithmetic. They are not a market rate, a Beacon average or the terms of any real contract. Use your own contract and your own event dates.

Assumptions in this example

  • Detention free time is 7 calendar days, starting the day after gate-out.
  • The return day is a chargeable day if it falls after the last free day.
  • Rates are tiered: £60 per day for chargeable days 1 to 5, and £95 per day from chargeable day 6 onwards.
StepDate in this example
Full container gated out of the terminalMonday 26 October 2026
Free time runsTuesday 27 October to Monday 2 November 2026
First chargeable dayTuesday 3 November 2026
Empty container returnedMonday 9 November 2026
Chargeable days3 to 9 November 2026, which is 7 days
Chargeable daysDaysDaily rate (example)Amount
Days 1 to 55£60£300
Days 6 to 72£95£190
Total detention in this example7£490

If the contract said the return day is not charged, the total would be 6 days and £395. A single counting rule changes the bill, which is why the check has to start from the contract.

Detention vs demurrage: what is the difference?

DemurrageDetention
Where the container isInside the terminal, fullOutside the terminal, with you
Clock startsAfter free time from discharge or availabilityAfter free time from gate-out, or as the contract says
Clock stopsWhen the container leaves the terminalWhen the empty container is returned

A container can incur both, one after the other. If your contract uses a combined clock, the free days are shared, and you need to count them as one allowance. More on the terminal side is in What is demurrage?.

How do I check a detention invoice?

Rebuild the charge and compare it with the invoice: the invoice, the free time and rates in the governing contract or tariff, and the shipment events that start and stop the clock.

  1. Confirm the bill of lading and the container number.
  2. Identify the contract or tariff, and the amendment, in force for the shipment.
  3. Read the free time, calendar or working days, combined or separate clocks, and the rate tiers.
  4. Take gate-out and empty-return dates from the shipment record, not only from the invoice.
  5. Rebuild chargeable days and apply the tiers, as in the example above.
  6. Check the same days have not also been billed as demurrage.
  7. Note the query deadline in the contract before you approve payment.

On US trades in scope of the Federal Maritime Commission's billing rules, a detention invoice must show, among other things, the free time, its start and end dates, the dates charged and the rate applied (46 CFR 541.6), and must be issued within 30 calendar days of the date the charge was last incurred (46 CFR 541.7). Those are US rules. Do not assume they apply to a UK invoice that is not in scope.

Where do detention charges sit in the P&L?

On their own ledger line, accrued in the month the chargeable days were incurred, not when the invoice arrives. If detention is rolled into freight, nobody can see a receiving or return delay in the numbers. The method is in How do I see what demurrage and detention are costing us on the P&L?.

Detention charges FAQ

What is a detention charge in simple terms?

A daily fee for keeping the shipping line's container outside the terminal after the free days allowed for returning it empty.

How are detention charges calculated?

Chargeable days after the last free day, multiplied by the daily rate for each day, with any rate tiers added together. The clock is set by the contract and by gate-out and empty-return dates.

What is the difference between detention and demurrage?

Demurrage is charged while the full container is inside the terminal. Detention is charged while you hold the container outside it. They can run one after the other, or share a combined clock.

Is detention the same as per diem?

In some US trades, per diem is another name for the same container detention charge. Check which term your contract and invoices use.

Who pays detention charges?

The party the bill of lading, contract or tariff makes liable. On imports that is often the consignee or cargo owner, sometimes through a forwarder that passes the cost on.

Is container detention the same as truck detention?

No. Container detention is charged by the shipping line for keeping its container. Truck detention is charged by a haulier for waiting time. This guide covers container detention only.

Sources

  • US Federal Maritime Commission rule on demurrage and detention practices, including per diem, 46 CFR 545.5. https://www.ecfr.gov/current/title-46/chapter-IV/subchapter-B/part-545/section-545.5
  • US demurrage and detention invoice contents, 46 CFR 541.6, and invoice timing, 46 CFR 541.7, for US trades in scope only. https://www.ecfr.gov/current/title-46/chapter-IV/subchapter-B/part-541
What is OTIF, and how do you measure it?
Guide
What is demurrage? A guide for cargo owners.
Guide
What is a freight audit?
Guide

Audit every detention invoice before you pay it.

Beacon freight invoice audit and verification rebuilds each detention charge from your contract free time and the shipment events, and flags what does not add up.

See D&D Control

Beacon Insider, once a month.

Freight rates, port congestion and carrier performance, in one short email.