Container Detention Fee Calculator
Detention charges from days held beyond free time.
About this calculator
Container detention is the fee a carrier or leasing company charges when you keep hold of their container past the agreed free time — a separate charge from demurrage, which penalizes slow cargo pickup at the port itself. This calculator first subtracts the free-time allowance from total days held to get chargeable days, then splits those chargeable days across two rate tiers: the first block (Tier 1 Duration, defaulting to 6 days) bills at the lower Tier 1 rate, and anything beyond that block bills at the steeper Tier 2 rate. That tiered escalation mirrors how most ocean carriers actually price detention — a modest per diem at first that jumps sharply the longer a container sits, designed to pressure fast turnaround.
The per-container cost is then multiplied by your container count to get the total exposure, and an average daily rate is reported by dividing that per-container cost across the chargeable days so you can see the blended effect of the escalation on a single container, independent of how many containers you're tracking. Two things are easy to misjudge here: detention and demurrage are frequently confused even though they cover different failure points in the supply chain (holding the box vs. clearing the port), and free time is a negotiated contract term, not a universal standard — it commonly ranges from 3 to 7 days but varies by carrier, trade lane, and equipment type. If congestion, customs delays, or a carrier-caused holdup pushed your days held past free time, request a detention waiver before assuming the calculated charge is final — carriers routinely grant relief for circumstances outside the shipper's control.
Legal Disclaimer
This calculator provides general estimates only and does not constitute legal advice. Laws, regulations, and court procedures vary significantly by jurisdiction. Consult a licensed attorney in your area for advice specific to your situation.
Inputs
Results
Total Detention ($)
$2,100.00
≈ 16 pairs of sneakers
How to Use This Calculator
- Enter Free Time Days — the demurrage-free period granted by the carrier (typically 3–7 days).
- Set Total Days Held — how long your containers were or will be at the port.
- Enter Tier 1 Rate per Day, Tier 2 Rate per Day, and the Tier 1 Duration before escalation.
- Set Number of Containers subject to detention.
- Review Total Detention Cost and Per Container cost.
- Request detention fee waivers immediately if delays were caused by port congestion or carrier issues beyond your control.
How the result changes with Total Days Held
| Total Days Held | Total Detention ($) |
|---|---|
| 7 | $450.00 |
| 11 | $1,200.00 |
| 21 | $4,200.00 |
| 35 | $8,400.00 |
What each input means
- Free Time (days)
- Days allowed before detention charges start.
- Total Days Held
- Total calendar days container is held.
- Tier 1 Rate ($/day)
- Daily rate for first tier of detention.
- Tier 2 Rate ($/day)
- Escalated rate for extended detention.
- Tier 1 Duration (days)
- Days at Tier 1 rate before escalation.
- Number of Containers
- Containers subject to detention.
What each result means
- Total Detention ($)
- Total detention charges for all containers.
- Per Container ($)
- Detention cost per container.
- Chargeable Days
- Days beyond free time.
- Tier 1 Charges ($)
- Charges at the lower rate.
- Tier 2 Charges ($)
- Charges at the escalated rate.
- Avg Daily Rate ($)
- Average per-day detention cost.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersFree Time (days) = 4, Total Days Held = 14, Tier 1 Rate ($/day) = 75, Tier 2 Rate ($/day) = 150 = 6 input(s) provided
- Calculate Total DetentionTotal Detention = costPerContainer * containerCount2100 = $2,100
- Calculate Per ContainerPer Container = tier1Cost + tier2Cost1050 = $1,050
- Calculate Chargeable DaysChargeable Days10 = 10
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
How is detention different from demurrage?
Detention charges you for keeping the carrier's or leasing company's container itself past the agreed free time, wherever it physically is — at your warehouse, a rail yard, or still at the port. Demurrage, by contrast, charges you specifically for leaving cargo sitting at the port terminal too long before pickup. This calculator only models detention: the per diem cost of holding the equipment.
Why does the daily rate jump after Tier 1 Duration?
The calculator applies your Tier 1 rate to the first block of chargeable days (Tier 1 Duration, 6 by default) and then switches to the steeper Tier 2 rate for every chargeable day beyond that block. This mirrors how carriers actually structure detention tariffs — a modest per diem at first that escalates the longer the container sits, since the goal is to pressure fast returns rather than to profit from long holds.
What counts as 'chargeable days' in this calculator?
Chargeable days is Total Days Held minus Free Time (days), floored at zero — so if you return the container within the free-time window, chargeable days is 0 and no detention accrues at all. It's this chargeable-days figure, not the total days held, that gets split across the Tier 1 and Tier 2 rate blocks.
Can I get the calculated detention charge waived?
Often, yes. If port congestion, customs holds, or a carrier-caused delay pushed your total days held past free time, most carriers will consider a detention waiver or credit for circumstances outside your control — but you generally need to request it, and do so before or shortly after the charge posts rather than after paying it. This calculator shows what you'd owe under the stated terms; it doesn't know whether a waiver applies to your situation.
Does the Number of Containers input multiply the whole charge?
Yes — the calculator first works out the detention cost for a single container (Tier 1 Cost plus Tier 2 Cost) and then multiplies that per-container figure by Number of Containers to get Total Detention. The Avg Daily Rate output, however, stays per-container: it divides the per-container cost by chargeable days, so it doesn't change just because you're tracking more boxes.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Demurrage Calculator
Demurrage from laytime used and daily rate.
Supply ChainContainer Load Calculator
Calculate how many units fit in a shipping container.
Commercial MarineContainer Weight Calculator
Calculate maximum container payload from tare weight and gross limits, with volume utilization check.
Maritime LawGeneral Average Calculator
GA contribution under York-Antwerp Rules from voyage values.
Maritime LawJones Act Compensation Calculator
Seaman injury compensation under the Jones Act.
More in Legal & Professional.