Demurrage runs while the loaded container sits in the terminal, detention while the carrier's box is on the street: two clocks, two free times, two tier tables, worked on one importer.
Demurrage is charged for a loaded import container that stays in the marine terminal after its free time; detention, often called per diem, is charged while the carrier's container is outside the terminal after its own free time, until the empty is returned. Each charge has its own clock and its own rate tiers: in the worked case, 15 dwell days cost $4,050 and 12 street days cost $1,950.
Worked in full in The Demurrage and Detention Handbook by Julian R. Sterling, with every figure reproduced in live Excel workbooks.Get the DRM-free PDF, $19.99 →
Demurrage pays for terminal space, detention pays for the carrier's equipment. The Federal Maritime Commission uses one definition for both: demurrage or detention means any charges, including per diem charges, assessed by ocean common carriers, marine terminal operators or non-vessel-operating common carriers for the use of marine terminal space or of shipping containers, freight charges excluded (46 CFR 541.3). The names vary from one tariff to the next, but the economic logic does not. A charge that runs while the box sits on the terminal is a demurrage-type charge; a charge that runs while the box is on the street is a detention-type charge.
| Charge | Where the container is | Clock starts | Clock stops |
|---|---|---|---|
| Import demurrage | Loaded, in the terminal | Availability for pick-up | Out-gate |
| Import detention (per diem) | Outside the terminal | Out-gate | Empty return |
| Export detention | Outside the terminal | Empty pick-up | Laden gate-in |
| Rail demurrage | Rail car at the customer's siding | Placement | Release |
On an import the two clocks do not overlap. When the container leaves the terminal, the demurrage clock stops and the detention clock starts. That simple fact decides who can reduce each charge: demurrage depends on how fast the importer, its customs broker and its trucker can pull the box, detention on how fast the warehouse unloads it and the trucker gets the empty back to a terminal that will accept it.
Per diem is the trucking industry's usual word for detention, and the FMC definition includes it by name. Terminal storage is a demurrage-type charge; in the worked case it is included in the carrier's line demurrage, but some terminals bill storage on their own schedule, so check which party bills which days. Chassis rental is different: in the case the drayage carriers pass through $32 per street day for the chassis, which is equipment rent, not demurrage or detention. It still behaves like detention, because it grows with every day the box stays on the street.
A word of caution for readers coming from bulk shipping: in a charter party, demurrage means compensation to the shipowner for a vessel's delay beyond laytime. It is a different concept with the same name, and nothing in this article applies to it.
A common carrier may not provide service in the liner trade otherwise than in accordance with its published tariff or a service contract (46 U.S.C. 41104(a)(2)(A)). Free time and daily rates therefore live in one of two places: the carrier's tariff, or the service contract the shipper negotiated. Under the FMC billing rule, every invoice must name the rule behind the daily rate, such as the tariff name and rule number, the terminal schedule, or the service contract number and section (46 CFR 541.6(c)(2)).
Tariffs differ on details that move the bill. Some count free time in calendar days, others in working days. Some exclude holidays and unplanned terminal closures from free time, or stop the clock during a customs hold the customer did not cause. Free time of a few days and daily rates of a few hundred dollars that rise by tiers are common, but no two tariffs are the same, and the only numbers that matter are the ones in your contract.
Tallmere Home Brands, Inc. is a fictional US importer and distributor of housewares. Its containers arrive through one West Coast port and one East Coast port, and a Midwest distribution center receives rail boxcars. Every volume, free time allowance, daily rate, date and amount in the case is invented for illustration; none is a carrier's or terminal's tariff or market data. In 2026 it imported 5,300 containers (9,900 TEU): 3,400 through the West Coast port and 1,900 through the East Coast port. Its 2026 service contracts give these terms:
| Term | Demurrage | Detention |
|---|---|---|
| Free time | 4 calendar days (West Coast), 5 (East Coast), from availability | 4 calendar days from out-gate |
| Tier 1 | $225 a day, days 1 to 4 | $200 a day, days 1 to 3 |
| Tier 2 | $375 a day, days 5 to 8 | $250 a day, days 4 to 6 |
| Tier 3 | $550 a day from day 9 | $300 a day from day 7 |
The case counts the availability day as day 1 of dwell and the out-gate day as day 1 of street time, and charges the same daily rate for 20-foot and 40-foot containers.
Chargeable demurrage days are dwell days less free days, and each chargeable day is priced at the rate of its tier. A container made available on day 1 that leaves the West Coast terminal on day 15 has 15 dwell days, 4 free days and 11 chargeable days:
The demurrage is $4,050. Note how the tiers work: the eleventh chargeable day costs more than twice the first, so a few slow containers weigh far more in the bill than their number suggests.
Chargeable detention days are street days less free days. A container on the street for 12 days has 8 chargeable days: 3 days at $200 ($600), 3 days at $250 ($750) and 2 days at $300 ($600), so the detention is $1,950.
The same method applied to three containers of the case at the West Coast port:
| Container | Dwell / street days | Demurrage | Detention |
|---|---|---|---|
| ZXQU 401552-8 | 8 / 8 | $900 | $850 |
| ZXQU 402771-9 | 13 / 10 | $2,950 | $1,350 |
| ZXQU 403340-8 | 6 / 18 | $450 | $3,750 |
The third container left the terminal quickly and then spent 18 days on the street: a short dwell does not protect against a large detention charge. To run the same arithmetic on your own containers, the free Demurrage and Detention Calculator takes your tiers, dates and free days and returns the charge by tier for up to eight containers.
The trap: counting the availability day or the out-gate day as day 0. A one-day shift at the start of the clock moves every container that runs past free time into a more expensive day. Read how your tariff counts before you check a single invoice.
Across the year the case bill is built from distributions of dwell and street days at each port. In 2026 Tallmere paid $1,938,275 of import demurrage and $2,684,450 of import detention, $4,622,725 in total, or $872.21 per import container and $466.94 per TEU. With export detention ($77,388) and rail demurrage ($24,480), the bill reaches $4,724,592.
| Measure, 2026 | Demurrage | Detention |
|---|---|---|
| Import containers charged | 2,130 (40.2 percent) | 3,524 (66.5 percent) |
| Chargeable days | 7,233 | 12,096 |
| Cost per import container | $365.71 | $506.50 |
| Share of containers within free time | 59.8 percent | 33.5 percent |
Detention is larger because only 33.5 percent of import containers came back within detention free time, against 59.8 percent that left the terminal within demurrage free time. The street leg depends on the warehouse, on return appointments and on whether the terminal accepts empties, and the shipper controls less of it than it thinks. About 4,222 of the 5,300 containers incurred at least one charge, roughly four in five.
The ports differ too. The West Coast cost $982.00 per container and the East Coast $675.75, mostly because West Coast demurrage free time is one day shorter. One more dwell day across all import containers costs $154.80 on average ($180.25 on the West Coast, $109.25 on the East Coast); one more street day costs $189.80 of detention, $221.80 with chassis rental.
Some carriers offer merged or combined free time: one clock from availability to empty return, with one pool of free days and one tier table. In the case the alternative offer gives 10 free days, then $275 a day for days 1 to 4, $400 a day for days 5 to 8 and $550 a day from day 9. A merged clock lets a fast pick-up pay for a slow return, but its daily rates are higher and escalate on the combined overage, so whether it beats separate terms depends on your own distributions. It is the subject of what extra free time is worth in a negotiation.
Calculating the charge correctly is only the first test. Under the FMC billing rule, demurrage is last incurred on the out-gate day and detention on the empty return day, and an invoice issued more than 30 days after a charge was last incurred is not payable for that charge; an invoice missing a required element is not payable at all. Separately, the FMC's incentive principle treats detention imposed when empty containers cannot be returned as likely unreasonable, absent extenuating circumstances. Both tests, with the deadlines to request mitigation, refund or waiver, are worked in how to dispute demurrage and detention charges.
The full case, container by container and for the whole year, with the audit, the disputes and the 2027 budget, is worked in The Demurrage and Detention Handbook.
Demurrage is charged while a loaded import container stays in the terminal after its free time; detention is charged while the carrier's container is outside the terminal after its free time, until the empty is returned. On an import the first clock stops at out-gate and the second starts there.
In container shipping, yes in substance: per diem is the name truckers and many contracts use for the daily charge on the carrier's equipment outside the terminal. The FMC definition of demurrage or detention includes per diem charges by name.
Chargeable days are dwell days less free days, and each day is priced at the rate of its tier. With 4 free days and tiers of $225, $375 and $550, a container with 15 dwell days has 11 chargeable days and owes $4,050.
The party named in the contract, tariff or bill of lading. The FMC rule section that limited who could be billed was set aside by a federal court of appeals in September 2025 and removed effective December 29, 2025, so the question is governed by contracts, tariffs and bills of lading, but the invoice must still state why the billed party is liable.
This guide is one arc of The Demurrage and Detention Handbook. The book follows one importer through the charges and the rules, free time and tiers, the FMC billing rule, container-by-container and annual calculations, congestion and export charges, the invoice audit, disputes and charge complaints, the free time negotiation, the budget and governance among shipper, forwarder and trucker, and rail demurrage.
Paperback PDF edition, $19.99 Book page and companion workbooks
Free download: Demurrage and Detention Calculator (Excel).
Illustrative figures computed by the book model; Tallmere Home Brands, Inc., its carriers, terminals and truckers and every volume, free time allowance, rate, date and amount are fictional and invented, not any carrier's, terminal's or railroad's tariff and not market data. Rules described as read in November 2026; anything not final at that date is conditional, and the reasonableness of a charge is decided case by case. Education only, not legal, customs, tax or accounting advice.