Free calculator

Demurrage and detention calculator

Work out demurrage and detention (per diem) for your containers from the dates, the free days and the daily rate for each tier, and compare waiting at the terminal with a pre-pull. Nothing you type leaves your browser.

How it’s calculated

Freight Benchmarks' calculator counts demurrage the way carrier tariffs and terminal schedules charge it: every day a loaded container stays at the terminal after its last free day, through the day it leaves, priced at the daily rate of the tier that day is in and added up for each container. Detention (per diem) is counted the same way, from the day the container leaves the terminal until the empty is returned.

Freight Benchmarks found that on the 75 demurrage bills in its invoice data that state the days, the middle half of daily rates ran $100 to $245 per container (single-container US import shipments first invoiced January 2023 to June 2026), and per diem ran a median $172 per container per day on 84 such bills (first invoiced July 2024 to June 2026).

For the measured rates and bills, where the port publishes its own.

With the same dates and rates. If their dates differ, work them out one at a time.

Demurrage: the loaded container at the terminal

Charged for each day the container stays at the terminal after its last free day. Leave this part blank if you only need detention.

Count the days from

The discharge or availability date on the arrival notice or the terminal's site.

From the carrier's tariff, the terminal's schedule or your service contract.

The day the container leaves, or will leave, the terminal. That day counts.

Daily rate per container
  1. Tier 1: from day 1 after the last free day

Days count from the first day after the last free day. A tariff with one rate for days 1 to 4 and another from day 5 has tier 2 starting on day 5. With one rate for every day, fill in tier 1 only.

Detention (per diem): the container out of the terminal

Charged by the carrier for each day its container is out past the free days, until the empty is returned. Leave this part blank if you only need demurrage.

Count the days from

The day the container went out of the terminal gate.

From the carrier's tariff or your service contract.

The day the empty goes back to the terminal or depot the carrier names. That day counts.

Daily rate per container
  1. Tier 1: from day 1 after the last free day

Days count from the first day after the last free day. A tariff with one rate for days 1 to 4 and another from day 5 has tier 2 starting on day 5. With one rate for every day, fill in tier 1 only.

Pre-pull comparison

A pre-pull moves the container to the trucker’s yard by its last free day. That stops demurrage, adds a pre-pull fee, yard storage and chassis days, and starts the per diem clock early.

This calculator needs JavaScript, which is off in your browser. You can work it out by hand: for each container, the days past the last free day times the daily rate of each tier, as set out below, with the daily rates importers were billed in the table.

What a day costs on importers’ bills

Freight Benchmarks measures what importers were billed, not tariff prices (why the two differ). Most demurrage arrives as one lump sum, so these daily rates come from the bills that state the days billed: the rate is the bill divided by those days, per container.

Per container per day. Single-container US import shipments whose every line of the charge states the days billed; lump-sum bills are left out, and the share of bills that state the days is importer-weighted. Demurrage covers shipments first invoiced January 2023 to June 2026, a longer window than the others (July 2024 to June 2026). A dash: not published. Freight Benchmarks, data version 2026-10-22.
ChargeMiddle half of daily ratesMedian rateMedian days billed
Demurrage75 bills state the days (36.1% of all)$100–$245——
Per diem (detention)84 bills state the days (58.7% of all)$150–$195$1722
Chassis extra day2,179 bills state the days (99.9% of all)$45–$55$553

Whole bills tell the rest. In Freight Benchmarks’ invoice data, on single-container US import shipments first invoiced July 2024 to June 2026 that paid each charge, the median demurrage bill was $404 per container (1 in 10 over $1,360), the median per diem bill was $350 per container (1 in 10 over $2,287) and the median pre-pull bill was $155 per container (1 in 10 over $200), across all ports in the data.

Per-day rates by port, and how they are measured

How do you calculate demurrage?

Demurrage is charged per container, for each day a loaded import container stays inside the terminal after its free time runs out. Work it out in four steps:

  1. Find the last free day. Free time starts when the container is discharged and available for pickup, on that day or the next, depending on the tariff, and lasts the number of free days in the carrier’s tariff, the terminal’s schedule or your service contract. The terminal or your forwarder can give you the last free day once the vessel has discharged.
  2. Count the days after it, from the day after the last free day through the day the container leaves the terminal.
  3. Price each day at its tier’s rate. The daily rate usually climbs in tiers: one rate for the first days past free time, a higher one for the next band of days, and so on.
  4. Add the tiers and multiply by the containers. Each container has its own free time and its own charge.

So demurrage for one container is the days in each tier times that tier’s daily rate, added up. The calculator does the count, shows the last free day it worked out and prices each tier, so you can check its numbers against the terminal’s dates and the invoice.

How is detention (per diem) calculated?

Detention, which US carriers usually bill as per diem, runs on a second clock. Once the container leaves the terminal, the carrier allows free days to deliver it, unload it and bring the empty back. Every day after them, until the empty is returned to the terminal or depot the carrier names, is charged per container at the rate in the carrier’s tariff or your service contract. The count works the same way: the days past the free days, times the daily rate for each tier. Some contracts combine demurrage and detention into one allowance of free days; the calculator keeps the two clocks apart, so ask the carrier how your days are split.

Calendar days or working days?

Tariffs and contracts differ. Some count free time in calendar days, so weekends and holidays use it up; others count working days, Monday to Friday, and skip public holidays. Once free time is over, a tariff can charge every calendar day, weekends included, even when its free time counted working days. The calculator counts free time in calendar days unless you choose working days, and it charges every calendar day after the last free day. It doesn’t know public holidays: if one lands inside working-day free time, add a free day.

How do tiers work?

A tier is a band of days past free time with its own daily rate. If a tariff charges one rate for days 1 to 4 after free time and a higher rate from day 5, a container that leaves 6 days after its last free day pays 4 days at the first rate and 2 at the second. In the calculator, that is tier 1, and tier 2 starting on day 5; a third tier can start later still. With one rate for every day, fill in tier 1 only. Under the FMC’s billing rule the invoice has to state the rate and the tariff, schedule or contract it comes from, so the tiers that apply to you are on paper.

When does the clock stop?

Demurrage stops when the container leaves the terminal, and per diem stops when the empty is returned. In between, the rules can stop the clock. The Federal Maritime Commission’s interpretive rule judges demurrage and detention by whether they serve as financial incentives to keep freight moving. It looks at whether demurrage and free time are tied to when the cargo is actually available for retrieval, and it says that, absent extenuating circumstances, detention charged when it doesn’t serve that purpose, such as when empty containers cannot be returned, is likely to be found unreasonable. Carriers’ and terminals’ own rules can stop the clock too: some tariffs don’t count days when the terminal is closed, or days on a hold that isn’t the importer’s fault. Check your tariff, and keep the evidence for any day you couldn’t act. This is general information, not legal advice.

Pre-pull or wait at the terminal?

When delivery can’t happen by the last free day, the trucker can pull the container out of the terminal early and park it at its yard. That stops demurrage, but it adds a pre-pull fee, yard storage for each day the container waits and chassis days if it sits on a chassis, and it starts the per diem clock early, because the free days outside the terminal begin when the container leaves. Tick the pre-pull comparison in the calculator to price both for your dates; it assumes the container is pulled on its last free day and delivered on your pickup date. In Freight Benchmarks’ invoice data, the median pre-pull bill on single-container US import shipments first invoiced July 2024 to June 2026 was $155 per container, before yard storage and chassis days. More in is a pre-pull cheaper than paying demurrage? Decide before the last free day: a pre-pull needs an appointment and space in the trucker’s yard.

What to check on the invoice

Under the FMC’s billing rule, 46 CFR 541.6, a demurrage or detention invoice from an ocean carrier, a marine terminal operator or an NVOCC has to show, among other details, the free time and when it started and ended, the date the container was available for pickup, the dates the charges cover, the rate and the tariff, schedule or contract it comes from, and the total. Put those dates and rates into the calculator. If your count of days or your total comes out different, ask the billing party to explain it. An invoice that leaves out required details doesn’t have to be paid; the steps are in how to dispute a demurrage or detention invoice. To see how a total compares with what other importers paid, use the freight bill checker.

Questions about demurrage and detention

How do you calculate demurrage?

Find the container's last free day, count the days after it through the day the container leaves the terminal, and multiply the days in each tier by that tier's daily rate from the carrier's tariff, the terminal's schedule or your service contract. Add the tiers, then multiply by the number of containers. In Freight Benchmarks' invoice data, where demurrage bills state the days, the middle half of daily rates ran $100 to $245 per container, on shipments first invoiced January 2023 to June 2026.

How is detention (per diem) calculated?

The same way, on the carrier's clock outside the terminal: the free days start when the container leaves the terminal, and every day after them until the empty is returned is charged at the per diem rate in the carrier's tariff or your service contract, per container. In Freight Benchmarks' invoice data, where per diem bills state the days, the median rate was $172 per container per day, the middle half ran $150 to $195, and the median bill covered 2 days, on shipments first invoiced July 2024 to June 2026.

Do weekends count toward demurrage and detention?

It depends on the tariff or contract. Free time is counted either in calendar days, so weekends and holidays use it up, or in working days, so they don't. Once free time is over, a tariff can charge every calendar day, weekends included. The calculator counts free time in calendar days unless you choose working days, charges every calendar day after the last free day, and doesn't know public holidays.

When does the demurrage clock stop?

Demurrage stops when the container leaves the terminal, and per diem when the empty is returned. The FMC's interpretive rule (46 CFR 545.5) judges these charges by whether they serve as financial incentives to keep cargo moving, and says that, absent extenuating circumstances, detention charged when empty containers cannot be returned is likely to be found unreasonable. Some tariffs also stop the clock for terminal closures or for holds that aren't the importer's fault.

Should I pre-pull the container or pay demurrage?

Price both for your dates before the last free day. A pre-pull trades the daily demurrage for a pre-pull fee, yard storage and chassis days, and it starts the per diem clock early. In Freight Benchmarks' invoice data, on single-container shipments first invoiced July 2024 to June 2026, the median pre-pull bill was $155 per container before yard storage and chassis days, and the median demurrage bill was $404 per container when demurrage was charged.

Sources

Free quote · no obligation

Want free time and demurrage terms in writing?

Tell us the lane. One licensed forwarder partner that serves it quotes ocean freight, customs clearance and delivery, with free days, demurrage and per diem terms spelled out before you book.

  • Drayage, chassis and port fees listed line by line
  • Free time and demurrage terms in writing before you book
  • A reply within one business day
A red semi truck hauling a trailer on a tree-lined interstate

Request a quote

More about the shipment (optional, helps the partner quote faster)
Who books the ocean freight today?
What went wrong recently?

For companies importing commercial cargo. Freight Benchmarks is not a forwarder and doesn't arrange freight. The quote is free, comes from the partner, and you're under no obligation.