How Is Demurrage Calculated? Understanding Shipping Container Charges

How Is Demurrage Calculated?

To calculate demurrage in shipping, you generally need three pieces of information:

  1. The date and time when the demurrage clock starts.

  2. The amount of free time allowed by the carrier or terminal.

  3. The applicable demurrage rate after free time expires.

The basic formula is:

Demurrage Charge = Chargeable Demurrage Days × Applicable Daily Rate

For example, if a container has 5 free days, remains at the terminal for 9 chargeable days, and the applicable rate is $100 per day:

Demurrage = (9 − 5) × $100 = $400

However, real-world demurrage charges in shipping are often more complicated. Rates can increase after certain numbers of days, free time may be calculated using calendar or working days, and the start and end dates can vary by carrier, port, shipment direction, container type, and local tariff.

That is why simply multiplying the number of days by one daily rate does not always produce the correct invoice.

This guide explains how demurrage calculation works, how to read a carrier tariff, how demurrage differs from detention and storage, and how importers and exporters can reduce unnecessary charges.



What Is Demurrage in Shipping?

Demurrage is a charge associated with keeping a carrier's container at a terminal, port, depot, or other specified facility beyond the agreed free time.

For example, an importer may have a container discharged from a vessel at the destination port. The carrier gives the importer a specified number of free days to arrange customs clearance, transportation, and pickup.

If the container remains at the terminal after that free period expires, demurrage may begin to accrue.

Maersk describes demurrage as compensation for holding a carrier's container inside a port, terminal, or depot beyond the agreed free time. Its terms also distinguish demurrage from detention, which applies when the carrier's container is held outside the terminal beyond free time.

What Does "Free Time" Mean?

Free time is the period during which the customer can use or retain the container without paying the applicable demurrage or detention charge.

The important point is that free time is not universal.

It can depend on:

  • Shipping line

  • Port or terminal

  • Import or export movement

  • Container type

  • Trade lane

  • Service contract

  • Customer agreement

  • Local regulations

  • Calendar-day or working-day rules

  • Special cargo requirements

Maersk notes that free time varies by country and shipment circumstances, while its terms define free time as the agreed period during which demurrage, detention, or applicable combined charges are not payable.

The Basic Demurrage Formula

The simplest demurrage formula is:

Demurrage Charge = Chargeable Days × Daily Demurrage Rate

Where:

Chargeable Days = Total Demurrage Period − Free Time

For example:

ItemExample
Container discharge dateJune 1
Container pickup dateJune 10
Total period counted9 days
Free time5 days
Chargeable days4 days
Daily demurrage rate$100
Total demurrage$400

This is a simplified example. The actual calculation must follow the carrier's published tariff or contractual terms.

How to Calculate Demurrage in Shipping Step by Step

Step 1: Identify the Correct Shipment

Start with the specific container and shipment.

You need information such as:

  • Container number

  • Bill of lading number

  • Shipping line

  • Port of loading or discharge

  • Import or export status

  • Container type

  • Vessel and voyage

  • Terminal

  • Applicable tariff or service contract

Do not assume that two containers arriving at the same port have identical demurrage terms.

Step 2: Determine When the Demurrage Clock Starts

This is one of the most important parts of how demurrage is calculated.

For an import container, the clock may be linked to an event such as:

  • Vessel discharge

  • Container availability

  • A specified terminal event

  • Another date defined in the carrier's tariff

For an export container, demurrage may be calculated from events such as full-container gate-in until loading on board.

The exact rule depends on the carrier and location.

For example, Maersk's published terms for South Africa state that import demurrage days are calculated from container discharge to full-container gate-out, after subtracting the applicable free days. For exports, the calculation runs from full-container gate-in until loading, again after free time.

Expert tip: Never calculate demurrage from the vessel arrival date alone. Check the carrier's definition of the start date.

Step 3: Determine the Free-Time Period

Next, find out how many free days are available.

Suppose your tariff provides:

5 free days

And the applicable demurrage period is:

9 days

Then:

9 − 5 = 4 chargeable days

But there is another important question:

Are the days calendar days or working days?

This can significantly affect the invoice.

Some tariffs count calendar days, while others use working-day definitions.

For example, Maersk's U.S. import tariff effective January 1, 2026, specifies working-day rules for certain free-time calculations and explains how terminal operating days are treated.

Therefore, weekends and holidays should never automatically be assumed to be free.

Step 4: Find the Applicable Demurrage Rate

Demurrage rates are normally published by the carrier or specified in the applicable agreement.

The rate may vary according to:

  • Number of chargeable days

  • Container size

  • Container type

  • Cargo type

  • Location

  • Import/export direction

  • Special equipment

  • Contract terms

A tariff may use a tiered rate structure.

For example:

Chargeable DaysIllustrative Rate
Days 1–4$100/day
Days 5–8$150/day
Days 9+$200/day

These figures are only an example. Always use the actual tariff for your shipment.

Step 5: Apply the Rate to Each Tier

This is where many simple shipping demurrage calculators can produce incorrect results if they assume one flat daily rate.

Suppose a container has:

  • 5 free days

  • 10 total chargeable days

  • Days 1–4 charged at $100/day

  • Days 5–8 charged at $150/day

  • Days 9–10 charged at $200/day

The calculation is:

4 × $100 = $400

4 × $150 = $600

2 × $200 = $400

Total demurrage = $1,400

The calculation is therefore:

$400 + $600 + $400 = $1,400

This is why understanding the tariff structure matters more than simply counting days.

A Practical Demurrage Calculation Example

Consider an imported 40-foot dry container.

Assume the following hypothetical terms:

  • Container discharged: July 1

  • Full container collected: July 11

  • Free time: 4 days

  • Chargeable period: 6 days

  • Days 1–3: $90/day

  • Days 4–6: $140/day

The calculation becomes:

3 × $90 = $270

3 × $140 = $420

Total demurrage = $690

Therefore, the estimated container demurrage charge is $690.

Again, this is an illustrative example rather than a universal industry rate.

How Tiered Demurrage Rates Work

Many carriers use escalating rates.

The reason is straightforward: keeping containers in constrained terminal space for longer periods can create operational costs and reduce equipment availability.

A hypothetical tariff might look like this:

Chargeable DayRate
1–3$75/day
4–6$110/day
7–10$160/day
11+$225/day

If your container incurs 8 chargeable days:

  • Days 1–3 = 3 × $75 = $225

  • Days 4–6 = 3 × $110 = $330

  • Days 7–8 = 2 × $160 = $320

Total = $875

Notice that the later days become increasingly expensive.

Why this matters

A container that stays at the terminal for an additional few days can cost substantially more than expected when it moves into a higher tariff tier.

Import Container Demurrage Calculation

For import container demurrage, the typical scenario is:

  1. Container arrives at destination.

  2. Container is discharged.

  3. Free time begins according to the applicable tariff.

  4. Importer arranges customs clearance and transportation.

  5. Container remains at the terminal after free time.

  6. Demurrage starts or continues to accrue.

  7. Container is eventually gated out.

A simplified formula is:

Import Demurrage = (Applicable Terminal Period − Free Time) × Rate

But the actual definition of the terminal period must come from the applicable carrier or terminal rules.

Some carriers also have separate storage arrangements. For example, Maersk distinguishes demurrage from storage in certain markets, with storage potentially being billed separately by the terminal.

Export Container Demurrage Calculation

Export demurrage can work differently.

For an export shipment, the container may be delivered to the terminal before the vessel's loading window.

If the full container remains at the terminal beyond the applicable free period before loading, demurrage may apply.

A simplified example:

  • Full container gated in: August 1

  • Vessel loading: August 8

  • Free time: 4 days

  • Chargeable days: 3

  • Rate: $100/day

Demurrage = 3 × $100 = $300

The actual start and end events vary by carrier and location. Maersk, for example, defines export demurrage in some tariffs from full-container gate-in until loading on board.

Demurrage vs. Detention: What's the Difference?

This is one of the most common sources of confusion.

Demurrage

Generally relates to a container remaining inside the terminal, port, or depot beyond the agreed free time.

Detention

Generally relates to the carrier's container being held outside the terminal beyond the agreed free time.

For an import shipment:

Port → terminal → customer → empty returned

Demurrage usually concerns the container's terminal period, while detention concerns the customer's use of the container outside the terminal.

Maersk explicitly distinguishes the two this way in its terms and buyer guidance.

However, terminology and calculation methods vary by carrier and country. Some locations use combined detention and demurrage structures.

Demurrage vs. Detention vs. Storage

ChargeTypical locationCommon trigger
DemurrageInside terminal/portContainer exceeds free time
DetentionOutside terminalCarrier container retained too long
StorageTerminal/yardSpace used beyond terminal free time
Combined D&DInside + outside periodContract uses combined clock

Do not assume that a carrier's terminology is identical to another carrier's terminology.

MSC, for example, publishes country-specific definitions and tariffs, demonstrating how local rules can differ.

What Factors Affect Demurrage Charges?

Several variables can change the final demurrage cost in shipping.

1. Free Time

More free time generally means fewer days exposed to demurrage.

But the number of free days is only one part of the calculation.

2. Number of Chargeable Days

The longer the container remains beyond free time, the higher the potential charge.

3. Rate Structure

A flat rate and a stepped tariff can produce very different totals.

4. Container Type

Rates can differ for:

  • Dry containers

  • Reefers

  • Tank containers

  • Open-top containers

  • Flat racks

  • Special equipment

Reefer containers can also involve additional operational costs. For example, Maersk's U.S. export information states that reefer demurrage can include plug-in/electricity charges.

5. Container Size

20-foot, 40-foot, and 45-foot equipment may have different tariffs.

However, this is not universal. Some tariff tables apply the same rate across sizes.

6. Import vs. Export

The clock and triggering events can differ substantially.

7. Port and Terminal

Different terminals can have different operating calendars, storage rules, appointment systems, and local charges.

8. Customs and Inspection

Customs inspections can sometimes contribute to delays. Whether charges can be waived or adjusted depends on the carrier's rules and the circumstances.

9. Vessel Delays and Operational Events

A vessel schedule change does not automatically mean demurrage will be waived.

The applicable carrier tariff and any specific waiver policy determine the result.

Is Demurrage the Same as Port Storage?

Not necessarily.

This distinction is important because a container can potentially generate more than one type of charge.

Demurrage is generally associated with the carrier's container remaining beyond its permitted free time.

Terminal storage is a charge associated with use of terminal or yard space and may be invoiced separately.

For example, Maersk's Canadian information distinguishes demurrage from terminal storage, stating that storage is billed directly by the terminal in that context.

In other countries or contracts, the structure can differ.

Always check the actual invoice and tariff instead of assuming that "demurrage" includes every terminal charge.

Shipping Demurrage Calculator: What Should It Include?

A useful shipping demurrage calculator should do more than multiply days by a rate.

At minimum, it should allow you to enter:

  • Container type

  • Container size

  • Import/export status

  • Port

  • Terminal

  • Start date

  • End date

  • Free-time allowance

  • Calendar or working-day rules

  • Tiered daily rates

  • Special equipment charges

  • Currency

  • Applicable tariff

Basic calculator formula

Chargeable Days = Total Applicable Days − Free Days

Demurrage = Chargeable Days × Daily Rate

Tiered calculator formula

Total Demurrage =
(Days in Tier 1 × Rate 1)
+ (Days in Tier 2 × Rate 2)
+ (Days in Tier 3 × Rate 3)

A calculator should also make clear whether the input dates are inclusive or exclusive and whether weekends and holidays count.

Common Mistakes When Calculating Demurrage

Mistake 1: Using the Vessel Arrival Date Automatically

The vessel arrival date is not necessarily the date from which the demurrage clock is calculated.

Check the carrier's defined start event.

Mistake 2: Assuming Weekends Are Free

Some tariffs count calendar days. Others use working-day definitions.

Never make assumptions.

Mistake 3: Using an Old Rate

Shipping tariffs change.

Always confirm the tariff applicable to the relevant shipment date and contract.

Mistake 4: Applying One Rate to Every Day

Tiered rates can increase after specific thresholds.

Mistake 5: Confusing Demurrage With Detention

The charges may apply to different parts of the container journey.

Mistake 6: Ignoring Terminal Storage

Terminal storage may be separate from carrier demurrage.

Mistake 7: Forgetting Container Type

A reefer or specialized container may have different charges from a standard dry container.

Mistake 8: Ignoring the Contract

A customer's negotiated agreement can differ from the carrier's standard tariff.

Mistake 9: Waiting Until the Invoice Arrives

The best time to calculate potential demurrage is before the free-time deadline, not afterward.

How to Reduce Demurrage Charges

The most effective strategy is to manage the container before it becomes chargeable.

1. Track Free-Time Expiry Dates

Create alerts for:

  • Vessel arrival

  • Discharge

  • Cargo availability

  • Free-time expiry

  • Customs clearance

  • Delivery appointment

  • Empty return deadline

2. Start Customs Preparation Early

Documentation problems can delay cargo release.

Prepare relevant documents before arrival where possible.

3. Coordinate With Your Trucking Provider

A container can be customs-cleared but still generate demurrage if transportation is unavailable.

Confirm:

  • Truck availability

  • Terminal appointments

  • Chassis availability

  • Pickup windows

  • Delivery location

  • Empty return location

4. Check the Carrier's Tariff Before Booking

Do not focus only on the ocean freight rate.

Compare the operational conditions that could affect the total landed cost.

5. Negotiate Free Time Where Appropriate

For predictable high-volume shipments, additional free time may be commercially valuable.

Some carriers offer paid free-time extensions or similar services. Maersk, for example, offers freetime-extension options in certain circumstances.

6. Monitor Port Congestion

Congestion can make pickup and delivery planning harder.

Build contingency time into the logistics plan when conditions suggest elevated operational risk.

7. Dispute Incorrect Charges Promptly

If an invoice appears incorrect, compare it against:

  • Bill of lading

  • Container tracking history

  • Gate records

  • Terminal availability records

  • Customs release information

  • Delivery order

  • Carrier tariff

  • Free-time agreement

Document the timeline carefully.

Expert Tip: Build a Container "Clock"

One practical approach used by experienced logistics teams is to create a simple container clock for every import.

Track:

Discharge → Availability → Free Time → Customs Release → Pickup Appointment → Gate-Out → Empty Return

Then assign responsibility to each milestone.

For example:

MilestoneResponsible Party
Customs documentationImporter/broker
Customs clearanceBroker/importer
Terminal appointmentTrucking provider
Container pickupTrucking provider
Cargo unloadingConsignee
Empty returnTrucking provider
Demurrage monitoringImporter/logistics team

This turns demurrage management from a reactive accounting exercise into an operational control process.

A Simple Demurrage Case Study

Consider an importer receiving a container at a congested destination port.

Shipment details

  • Container: 40-foot dry

  • Free time: 5 days

  • Total applicable period: 11 days

  • Days 1–3 after free time: $100/day

  • Days 4–6 after free time: $150/day

The container exceeds free time by:

11 − 5 = 6 days

Now apply the tiered rates:

3 × $100 = $300

3 × $150 = $450

Total demurrage: $750

The important lesson is not the hypothetical $750 itself.

It is that delays become increasingly expensive when a shipment crosses tariff thresholds.

A logistics team can therefore monitor the container daily and compare the cost of taking action—such as arranging an earlier truck appointment or purchasing additional free time—with the projected cost of waiting.

Pros and Cons of Demurrage Charges

Demurrage is often viewed negatively by cargo owners, but its commercial purpose is broader than simply generating an invoice.

Potential operational benefits

  • Encourages timely container movement

  • Helps prevent terminal congestion

  • Encourages efficient use of carrier equipment

  • Creates an incentive to complete customs and transport processes promptly

Potential disadvantages for shippers

  • Can create unexpected logistics costs

  • Costs can escalate quickly with tiered tariffs

  • Delays caused by multiple parties can complicate responsibility

  • Different country and carrier rules make calculations difficult

  • Separate terminal storage charges may add further expense

The practical issue for shippers is therefore not simply avoiding a "penalty"; it is understanding the contractual clock and managing the shipment before the clock becomes expensive.

How Much Does Demurrage Cost?

There is no single global demurrage rate in shipping.

Rates vary by:

  • Carrier

  • Port

  • Country

  • Trade lane

  • Container type

  • Container size

  • Import/export direction

  • Free-time agreement

  • Chargeable-day tier

  • Contract

As a current example of how specific tariffs can be, Maersk's U.S. import tariff effective January 1, 2026 lists different charges by day range for certain equipment, illustrating the tiered structure that can occur in practice.

Do not use a generic internet rate as the basis for an invoice dispute or financial forecast. Use the tariff applicable to the actual shipment.

For an article containing market-wide statistics about average demurrage costs, container dwell time, or annual demurrage expenditure, statistics should be sourced from organizations such as Drewry, UNCTAD, the World Bank, port authorities, FMC filings, or published carrier/terminal data, with the year and geographic scope clearly stated.

What Documents Should You Check Before Paying a Demurrage Invoice?

When reviewing demurrage charges calculation, collect:

  1. Bill of lading

  2. Arrival notice

  3. Container tracking history

  4. Discharge record

  5. Cargo availability notification

  6. Customs release documentation

  7. Delivery order

  8. Terminal gate records

  9. Truck appointment records

  10. Empty return confirmation

  11. Carrier tariff

  12. Free-time agreement or service contract

  13. Demurrage invoice

Build a chronological timeline.

Then compare the actual events against the carrier's contractual rules.

This is often more reliable than trying to reverse-engineer an invoice from the final amount alone.

Frequently Asked Questions About Demurrage Calculation

What is the formula for demurrage?

The basic formula is:

Demurrage = Chargeable Days × Applicable Daily Rate

For tiered rates, calculate each rate band separately and add the amounts together.

How do you calculate demurrage in shipping?

To calculate demurrage in shipping, determine the applicable start date, end date, free-time allowance, number of chargeable days, and tariff rate.

Then subtract free time from the applicable period and apply the correct rate structure.

Are weekends included in demurrage?

It depends on the applicable tariff.

Some shipping contracts count calendar days, while others use working days. Certain tariffs have specific rules for weekends and holidays.

Never assume weekends are excluded.

Does demurrage start when the vessel arrives?

Not necessarily.

The applicable tariff may define the start point as discharge, container availability, gate-in, or another operational event.

Check the carrier's terms.

What is the difference between demurrage and detention?

Demurrage generally relates to keeping a carrier's container inside a terminal beyond free time.

Detention generally relates to keeping the carrier's container outside the terminal beyond free time.

However, definitions and combined D&D structures vary by carrier and location.

Does customs delay automatically cancel demurrage?

No.

A customs inspection or clearance delay does not automatically mean demurrage is waived.

Whether relief is available depends on the applicable carrier terms, local rules, contractual arrangements, and the specific circumstances.

Can demurrage and storage both be charged?

Yes, depending on the port, terminal, carrier, and applicable tariff.

Demurrage and terminal storage can be separate charges.

How can I avoid container demurrage charges?

The most effective measures are:

  • Track free-time deadlines.

  • Prepare customs documents early.

  • Monitor cargo availability.

  • Arrange trucking before free time expires.

  • Confirm terminal appointments.

  • Plan empty returns.

  • Review carrier tariffs.

  • Request additional free time when appropriate.

  • Monitor exceptions and delays daily.

Can demurrage charges be disputed?

Potentially, yes.

If the invoice does not match the carrier's tariff, contractual free time, container movement records, or applicable waiver rules, you can raise a dispute.

Keep evidence showing exactly what happened and when.

Is there a universal shipping demurrage calculator?

No universal calculator can accurately determine every shipment's charge without the relevant carrier and local tariff.

A useful calculator needs the actual:

  • Free-time rules

  • Start/end events

  • Day-counting method

  • Rate tiers

  • Container type

  • Location

  • Contract terms

Final Takeaways: How to Calculate Demurrage Correctly

To calculate demurrage in shipping accurately, do not start with the invoice amount. Start with the shipment timeline and the applicable tariff.

The process is:

1. Identify the correct container and shipment.

2. Find the contractual or tariff-defined start date.

3. Determine the end date.

4. Calculate the applicable number of days.

5. Subtract the permitted free time.

6. Check whether calendar or working days apply.

7. Apply each relevant rate tier.

8. Check for separate storage, reefer, or other charges.

9. Compare the calculation with the carrier's invoice.

10. Dispute discrepancies with supporting documentation.

The biggest practical lesson is simple: demurrage is easier and cheaper to manage before free time expires.

A well-maintained container timeline, accurate tariff, and early warning system can prevent a small operational delay from turning into a significant container demurrage charge.



Comments

Popular posts from this blog

What’s the Purpose of a Ship’s Funnel?

Cruise Ships vs. Cargo Ships: Key Differences in Design and Functionality

Bulk Carrier Ship Tracking: Complete Guide for Real-Time Vessel Monitoring