Demurrage, detention, and per diem are quiet fees that can wreck margins when containers linger or equipment returns late. They’re clocks that start and stop based on a few concrete events at the terminal and in your own playbook. Our guide shows exactly how the charges get triggered, and gives you practical ways to prevent five-figure surprises before they hit your Accounts Payable (AP).
For a 3PL, like Speed Commerce, controlling demurrage and detention is the business, because port-side planning, appointment discipline, and fast turns are exactly what you sell and the difference between a happy client and a margin leak.
Who are we? Speed Commerce is an end-to-end provider of outsourced customer experience solutions for eCommerce retailers (including for Shopify and BigCommerce and more) as well as manufacturers, for close to 20 years. We grow our clients’ businesses by providing winning customer experience strategies such as 24/7/365 eCommerce customer service, order fulfillment, and warehousing – get a free quote from a fulfillment expert. See our new resources on 3PL services for the ports of Vancouver & Long Beach.
Quick definitions you can share with finance
- Demurrage: A terminal storage fee when a full container sits on the marine terminal past free time.
- Detention (often called per diem when it is a daily charge): A fee for holding a carrier’s container or chassis outside the terminal past free time.
- Storage (terminal yard storage for empties or misc. cargo) is separate from demurrage in many tariffs.
- Free time: The grace period before the fee clock starts. It is set by carrier or terminal and varies by port, line, and service contract.
How these fees get triggered, step by step
- Vessel discharges, the box becomes available.
- Customs, FDA, or other holds may apply. Unless your contract or tariff says otherwise, many holds do not pause demurrage clocks.
- The Last Free Day (LFD) arrives. Clocks often end at a specific hour on LFD, for example 5:00 p.m. at some terminals.
- If the box is not picked before LFD cut-off, demurrage accrues day by day on terminal.
- Once the box is out-gated, the detention clock starts. If you return the equipment late, detention/per diem accrues.
Why this varies: Free time length, what stops the clock, weekend rules, and cut-off hours are set in tariffs and service contracts. They are not uniform across terminals.
When does the clock actually start?
Rarely with a clean “now.” Availability might post at noon, a customs hold can clear at 3 p.m., and the terminal’s last free day can still end at 5 p.m. If your trucker can’t land a slot inside that window, you pay. Treat availability, hold release, and appointment confirmation as separate events with their own timestamps. Track each one and you’ll fund fewer surprises.
The rules of the game changed in 2024–2025
- The FMC’s Demurrage and Detention Billing Requirements took effect in 2024. Invoices must include specific data, billing parties face strict issue-by deadlines, and there are set dispute windows.
- In September 2025, the D.C. Circuit set aside the part of the rule that limited who can be billed. Expect carriers and parties in the chain to revisit contract language and practices.
- Bottom line right now: the what, when, and how of invoices is more structured, the who may be billed is less constrained than the 2024 rule intended, and your contracts and SOPs carry more weight.
What a clean invoice should include
Ask AP to flag any D&D invoice missing the basics below before paying or even opening a dispute:
- Container number(s) and location, the specific terminal or rail yard
- Event dates that start and stop the clock, with LFD and the hour the clock flipped
- Whether any holds applied, with release timestamps
- Rate basis and tiered daily rates from the applicable tariff or contract
- The billed party name that matches your contract role
If any of those are missing or inconsistent with your EDI or terminal data, push back.
How to dispute without wasting your 30 days
- Assemble evidence early: terminal availability screens, appointment confirmations, gate-in and gate-out EDI, customs hold and release times, carrier advisories, and any force majeure notices.
- Check the billing clock: many invoices must be issued within a set number of days after the last charge. Late invoices can be non-payable.
- Be specific: cite the exact days you contest, the timestamp that stops the clock, and the contract or tariff clause that supports your position.
- Escalate cleanly: if the billing party will not adjust, log a formal charge complaint with the data pack ready.
Prevention tactics that actually move the needle
- Pre-pull, then near-dock stage containers before LFD when yard congestion is likely.
- Appointment discipline: book early windows, use any peel-pile program your terminal supports, and keep your trucker pool aligned on cut-off hours.
- Chassis planning: name providers and daily counts, avoid last-minute scavenger hunts that burn a free day.
- Transload vs IPI: if your demand is coastal or you need parcel speed, break boxes near the port and return empties fast. If inland demand is concentrated, intact rail may reduce touches and risk.
- Do not assume waivers: during disruptions, many terminals and carriers keep D&D in force unless they state otherwise. Plan for it in contracts.
How does a two-day slip torch margin?
If you picture a $40,000 container that misses pickup on LFD after the chassis plan falls apart. Demurrage hits for two days, the trucker rebooks into a peak slot, detention accrues while the empty return queue crawls, and downstream parcel promises slip. You just turned a planning miss into real cash burn. The fix was simple: early appointment booking, a backup chassis source, and a pre-pull to a near-dock yard the day before LFD.
What should you tell your CFO?
Don’t let AP treat D&D as a nuisance line. It’s a controllable cost with a fast feedback loop. Route every D&D invoice through an evidence check before payment, then trend approved charges by lane, terminal, and carrier. If monthly D&D crosses a set threshold, trigger a routing or SOP change. A small dispute reserve is fine; a rolling write-off is not.
Common myths that cost money
- “Free time is free.” It is prepaid in your rate economics, and overages erase any rate win.
- “Holds always stop the clock.” Sometimes they do not. Your contract needs to say when a hold pauses billing.
- “Rail delays pause detention.” Only if your contract or rail storage rules say so, with evidence.
- “Cut-off is midnight.” Some terminals end free time at a set hour on LFD, not at 23:59.
Where a port-adjacent 3PL like Speed Commerce helps
A port-adjacent 3PL like Speed Commerce can turn risk into routine: pre-pulls and near-dock staging create capacity buffers so you beat Last Free Day without a storage scramble; fast strip-and-sort near the gate cuts dwell and trims demurrage; rapid empty returns keep detention in check; and centralized appointment booking, EDI, and timestamp logs give you clean evidence that speeds and strengthens any dispute.