Detention in Shipping Container Transport

15. 5. 2026

What is detention and why does it matter?

Detention, commonly also referred to as a per diem charge or per diem fee, is a financial penalty imposed by a shipping company when the shipper or consignee fails to return the container to the designated location within the agreed timeframe. Unlike demurrage, which applies to containers sitting at port terminals, detention accumulates when containers are outside the port – typically at warehouses, factories, distribution centers, or other off-port locations where cargo is being unloaded or prepared for reloading.

The term “detention” perfectly captures the essence of the charge: the carrier penalizes the customer for retaining its equipment longer than agreed. In maritime logistics, containers are expensive assets that shipping companies own or lease, and they must be returned to circulation quickly to remain profitable. Detention charges exist specifically to incentivize rapid container turnover and prevent shippers from using shipping equipment as free storage.

Understanding detention charges is critical for anyone involved in international shipping. These charges can accumulate quickly – often ranging from $50 to $175 per container per day depending on the carrier, route, and equipment type – and can turn an otherwise profitable shipment into a financial loss if poorly managed. For businesses importing or exporting goods in containers, detention represents one of the most controllable yet frequently underestimated costs in the supply chain.

Historical context of detention charges

Detention charges became standard practice in container shipping during the 1970s and 1980s, as the industry sought to standardize equipment management across global trade routes. Before containerization, cargo was loaded directly onto ships and the concept of “leasing” equipment did not exist. With the introduction of standardized ISO containers, shipping companies realized they needed a mechanism to ensure containers were returned promptly so they could be repositioned for the next shipment.

This practice became particularly critical during the post-World War II international trade boom. As container volumes grew explosively, shipping companies found that shippers would hold containers indefinitely if there were no financial incentives to return them. Detention charges solved this problem by making extended container retention economically unviable. Over the decades, these charges became a standard tariff item for every shipping company, although specific rates and free time periods vary considerably by carrier, route, and equipment type.

How does detention differ from demurrage?

Understanding the distinction based on location

The fundamental difference between detention and demurrage lies in where the container is located when charges begin to accumulate. This distinction is so important that it forms the basis of maritime billing practices worldwide.

Demurrage applies when a loaded container remains at the port or port terminal beyond the agreed free time. The clock starts when the ship is unloaded and the container is available at the container yard (CY). Demurrage is charged by terminal operators or shipping companies for warehouse space occupied at port facilities. Typical demurrage charges range from $50 to $150 per container per day for standard dry containers, although refrigerated containers and specialized equipment command higher rates – often $150 to $300+ per day depending on the port.

Detention, on the other hand, applies when the container is outside the port or terminal and has not been returned to the designated location or return point within the agreed free time. Detention begins the moment the container is “gated out” (released from the port) and continues until it is physically returned to the shipping company’s designated container return location or empty container depot. Like demurrage, detention is calculated on a per-container-per-day basis and can escalate significantly if the container remains in the shipper’s possession for an extended period.

Timeline and trigger points

Understanding when each charge begins and ends is essential for cost management. Consider a typical import scenario:

  1. Ship arrives at port → Container is unloaded at the container yard (CY)
  2. Free time begins → Typically 3–7 days depending on carrier and port
  3. Free time expires → If the container has not been picked up, demurrage charges begin to accumulate
  4. Container is gated out (picked up from the port) → Demurrage ends and detention begins to accrue
  5. Detention free time expires → Typically 2–7 days after gate-out, detention charges begin to accumulate
  6. Empty container is returned → Detention charges end

The critical moment is the transition from demurrage to detention. Many shippers mistakenly believe they have additional time after container pickup, but the detention clock often starts immediately upon gate-out, with only a brief grace period (1–2 days) before charges begin to accumulate. This misunderstanding has led to countless unexpected detention invoices.

Key differences: Comparison table

AspectDemurrageDetention
LocationAt port/terminal (CY)Outside port/terminal (warehouse, factory, etc.)
Who chargesTerminal operator or shipping companyShipping company (ocean carrier)
TriggerContainer not picked up within free timeContainer not returned within free time
Clock startsDay after ship unloadingDay container is gated out from port
Clock endsDay container is gated outDay empty container is returned to return location
Typical free time3–7 calendar days2–7 working/calendar days
Typical rate range$50–$150/day (dry), $150–$300+/day (reefer)$50–$175/day
ResponsibilityVaries by incoterms; typically consigneeVaries by incoterms; typically consignee

What is “free time” and how is it calculated?

Defining free time in maritime logistics

Free time is the grace period provided by the shipping company or terminal operator during which the shipper or consignee may use the container without accumulating detention or demurrage charges. It represents the carrier’s allowance for the normal, expected time needed to unload cargo, clear customs, and arrange return logistics.

Free time is a contractual element negotiated between the shipper and the shipping company. It is typically specified in the bill of lading (B/L), the ocean freight contract, or the carrier’s published tariff. The amount of free time varies based on several factors:

  • Carrier policy: Different shipping companies offer different free time periods
  • Trade route: High-volume routes may offer shorter free times than niche routes
  • Equipment type: Standard dry containers typically receive 5–7 days; refrigerated containers often receive only 2–3 days
  • Port location: Some ports are congested and offer minimal free time; others are less busy and may allow longer periods
  • Contractual terms: Large shippers with negotiated agreements may secure extended free time

How free time is calculated

The calculation of free time depends on whether it is measured in calendar days or working days – a distinction that can significantly affect detention charges.

Calendar day counting means all days of the week are counted, including weekends and holidays. If a container is gated out on a Friday and free time is 5 calendar days, free time expires on Wednesday (Friday + 5 days). This method is less favorable for shippers as it includes non-working days.

Working day counting means only Monday through Friday are counted, excluding weekends and holidays. If a container is gated out on a Friday and free time is 5 working days, free time does not expire until the following Thursday (5 working days: Monday, Tuesday, Wednesday, Thursday, Friday). This method is more favorable for shippers as it extends the actual calendar period.

Different carriers and ports use different counting methods, which adds complexity. For example, Atlantic Container Line (ACL) uses working days for some ports and calendar days for others, requiring shippers to carefully review tariff documents to understand exactly when detention charges will begin to accumulate.

The moment free time begins

A frequent source of confusion is determining the exact moment free time begins. There are typically three possible starting points:

  1. Day of unloading from the ship: Some carriers begin counting free time from the day the container is unloaded from the ship, even before it reaches the container yard.
  2. First working day after unloading: Many carriers begin free time on the first working day after the ship has been fully unloaded at the port. This is the most common practice and gives shippers an additional day or two of grace.
  3. Day of gate-out (container release): For detention free time specifically, the clock often starts on the day the container is released from the port, with no grace period.

Understanding which method your carrier uses is essential for planning pickups and returns. A shipper who assumes free time begins on day X but whose carrier counts from day Y may find themselves unexpectedly liable for detention charges.

What are the typical costs and charges associated with detention?

Detention charge structures and rate variations

Detention charges are calculated on a per-container-per-day basis, with rates varying significantly based on multiple factors. The base detention rate typically ranges from $50 to $175 per container per day, although this can vary considerably.

Factors influencing detention rates:

  • Equipment type: Standard 20-foot and 40-foot dry containers are charged at base rates. High-cube containers (9’6″ tall) may be charged at a premium. Refrigerated (reefer) containers are significantly more expensive, often $100–$300+ per day, as they require continuous power and maintenance.
  • Port and region: The US West Coast (Los Angeles, Long Beach, Oakland) has different rates than the East Coast (New York, Baltimore, Norfolk). International ports have their own rate structures. For example, Hamburg charges €25–€65 per day for standard detention, while New York charges $140+ per day.
  • Carrier policy: Each shipping company sets its own detention tariffs. Maersk, Hapag-Lloyd, MSC, Evergreen, ONE, and other carriers publish tariff documents detailing their specific charges.
  • Escalation clauses: Many carriers implement escalating charges – higher rates for days 4–10, even higher rates from day 11 onwards. For example, a carrier may charge $50/day for days 1–3, $75/day for days 4–10, and $100/day from day 11 onwards.
  • Hazardous cargo surcharges: Containers carrying hazardous materials are often subject to additional detention charges or stricter free time limits.

Real-world cost examples

To illustrate the financial impact of detention, consider these scenarios:

Scenario 1: Standard import container, 5-day detention delay

  • Equipment: 40-foot dry container
  • Detention rate: $100/day
  • Days in detention: 5 days beyond free time
  • Total detention cost: $500

Scenario 2: Refrigerated container, 10-day detention delay

  • Equipment: 40-foot refrigerated container
  • Detention rate: $200/day (reefer premium)
  • Days in detention: 10 days beyond free time
  • Total detention cost: $2,000

Scenario 3: Multiple containers, warehouse delay

  • Equipment: 5 × 40-foot dry containers
  • Detention rate: $125/day per container
  • Days in detention: 7 days beyond free time
  • Total detention cost: 5 × $125 × 7 = $4,375

These examples demonstrate why detention management is critical. A single warehouse unloading delay can easily result in thousands of dollars in unexpected costs.

Escalating charges and penalties

Many carriers implement tiered detention pricing, where charges increase the longer the container is in detention. This structure is designed to create stronger financial incentives for prompt return. A typical escalation might look like this:

PeriodRate per dayCumulative cost (10 days)
Days 1–3$50$150
Days 4–7$75$150 + $300 = $450
Days 8–10$100$450 + $300 = $750
Days 11+$150Continues to escalate

Over 10 days of detention, the total cost would be $750, not $500 as it would be at a flat rate. This escalation structure strongly incentivizes prompt container return.

What causes detention charges to accumulate?

Common operational causes

Detention charges rarely occur in isolation. They typically result from a combination of factors that delay container return. Understanding these causes is the first step toward prevention.

Customs clearance delays: This is arguably the single most common cause of detention charges. Customs procedures can take 24–72 hours or longer, depending on the port, the nature of the cargo, and the completeness of documentation. If customs clearance extends beyond the free time window, the shipper may already be accumulating detention charges before the container even leaves the port.

Documentation issues: Missing or incomplete import documents – such as bills of lading, invoices, packing lists, or certificates of origin – can delay customs processing. Every day of delay while waiting for corrected documents adds to detention costs.

Warehouse or consignee delays: Many detention charges result from delays in unloading at the destination warehouse. If the warehouse is understaffed, lacks equipment, or has a backlog of containers, unloading may take longer than expected. Once the container is gated out from the port, the detention clock is running, regardless of whether the warehouse is ready to unload it.

Labor shortages: Shortages of port workers, truck drivers, and warehouse staff can create bottlenecks. During the COVID-19 pandemic, labor shortages at ports and warehouses led to unprecedented detention charges as containers waited for available personnel to move them.

Equipment availability issues: Sometimes detention results not from the shipper’s actions, but from a lack of available unloading equipment. If no trucks or chassis are available to pick up the container from the port, the container remains in detention even if the shipper is ready to receive it.

Poor communication: Miscommunication between shipper, consignee, carrier, and warehouse can lead to missed pickup appointments or unloading schedules. If the warehouse doesn’t know the container is coming, or the driver doesn’t know the exact pickup time, delays inevitably occur.

Systemic and external causes

Beyond operational issues, detention charges can arise from factors outside the shipper’s direct control.

Port congestion: When ports are overwhelmed with ship arrivals and container volumes, the time needed to unload containers and move them through the terminal can increase significantly. During peak seasons or after supply chain disruptions, ports can experience congestion lasting weeks or months.

Weather and natural disasters: Hurricanes, earthquakes, floods, and other weather events can close ports and disrupt transport networks. These events can delay both ship arrivals and container pickups, leading to detention charges.

Vessel schedule changes: If a ship arrives significantly later than planned, it can compress the time available for cargo clearance and container return. A ship delayed by several days at sea can cause shippers to miss their planned pickup windows.

Regulatory changes: New customs regulations or security requirements can slow clearance processes. For example, enhanced screening procedures following security-related incidents can add days to clearance.

Geopolitical events: Port strikes, trade disputes, or sanctions can disrupt normal trade flows and lead to unexpected delays and detention charges.

Comparison of detention causes

CauseControllabilityFrequencyTypical delay
Customs clearance delaysMediumVery high1–3 days
Warehouse unloading delaysHighHigh2–5 days
Labor shortagesLowMedium2–7 days
Documentation issuesHighMedium1–2 days
Port congestionLowMedium–high3–10 days
Equipment availabilityLowLow–medium1–3 days
Weather/natural disastersVery lowLow1–14+ days

How can shippers prevent or minimize detention charges?

Pre-shipment planning and preparation

The most effective detention prevention strategy begins before the container even leaves the port. Shippers who invest time in planning are far less likely to encounter detention charges.

Understand free time terms: Before booking a shipment, explicitly confirm the free time period with the carrier. Request written confirmation of the number of free days, when free time begins, and whether it is counted in calendar or working days. Do not assume standard free time; verify it for your specific carrier and route.

Coordinate with consignees: Communicate with the relevant warehouse or factory weeks in advance to confirm they will be ready to receive and unload the container. Provide them with the container number, expected arrival date, and free time deadline. Establish a clear unloading schedule.

Prepare customs documentation: For imports, file customs documents as early as possible – ideally 5 days before the ship arrives at port. Work with a customs broker to ensure all documentation is complete and accurate. Incomplete documentation is one of the leading causes of customs delays and detention charges.

Arrange pickup in advance: Book pickup services (freight transport) well in advance of the container’s arrival. Confirm that the pickup provider has the necessary credentials (TWIC card, UIIA certification in the US) and understands pickup appointment requirements.

Build buffer time into schedules: Do not plan container return for exactly the day free time expires. Build in 1–2 days of buffer time to account for unexpected delays. This buffer can be the difference between avoiding detention charges and accumulating them.

Execution and monitoring strategies

Once a shipment is in transit, active management is essential.

Track container status: Use real-time tracking systems provided by carriers or freight forwarders to monitor container location and status. Know when the ship is expected to arrive, when the container is being unloaded, and when it is available for pickup.

Confirm pickup appointments: As soon as the container is available at the port, immediately confirm a pickup appointment with the transport provider. Do not assume the appointment will happen automatically; confirm it in writing.

Monitor free time countdown: Maintain a calendar or tracking system that displays the free time deadline for each container. Set reminders 2–3 days before free time expires to ensure all parties are aware of the upcoming deadline.

Maintain constant communication: Keep regular communication with the warehouse, transport provider, and customs broker. If any delays arise, address them immediately. Early warning of potential delays allows time to find solutions.

Use proper packaging: Ensure cargo is properly palletized and wrapped in plastic film to minimize unloading time. Loose boxes that must be unloaded individually can take much longer than palletized cargo. Efficient unloading can be the difference between completing unloading within free time and accumulating detention charges.

Technology solutions and visibility

Modern logistics technology can significantly reduce detention risk.

Transportation Management Systems (TMS): A TMS provides visibility into container movements, automates appointment booking, and sends alerts when free time expiration is approaching. Advanced TMS platforms integrate with carrier systems to provide real-time data.

Cargo tracking platforms: Services such as FourKites, Cello Square, and native carrier platforms provide real-time vessel tracking and ETA notifications. Knowing precisely when a ship will arrive allows shippers to coordinate all downstream activities accurately.

Automated booking systems: Some port terminals and transport providers offer 24/7 automated appointment booking systems. Using these systems to secure appointments during off-peak hours can improve efficiency and reduce waiting times.

Pre-clearance tools: Digital platforms that integrate with customs authorities (such as CBP in the US) allow shippers to file import documents electronically and automatically receive clearance notifications.

What are the regulatory and legal aspects of detention charges?

Ocean Shipping Reform Act of 2022 (OSRA-22)

The COVID-19 pandemic exposed significant problems in the container shipping industry, particularly regarding excessive and opaque detention and demurrage charges. In response, Congress passed the Ocean Shipping Reform Act of 2022 (OSRA-22), which President Biden signed into law in June 2022.

OSRA-22 represented the first major maritime regulatory reform since 1998. The Act gave the Federal Maritime Commission (FMC) expanded authority to regulate detention and demurrage charges and required shipping companies to provide greater transparency in how these charges are calculated and invoiced.

Key provisions of OSRA-22:

  1. Invoicing requirements: All detention and demurrage invoices must contain 13 specific data elements, including container number, equipment type, free time period, charge start date, and rate applied. This transparency requirement makes it easier for shippers to verify and dispute charges.
  2. Invoicing deadlines: Invoices must be issued within 30 calendar days of the charges being incurred. This prevents carriers from issuing surprise invoices months later.
  3. Dispute resolution: Shippers have 30 calendar days from invoice issuance to submit a request for mitigation, refund, or waiver of charges. Carriers must respond to disputes within a specified timeframe.
  4. Reasonableness standard: The FMC established that detention and demurrage charges must be “reasonable and related to the actual movement of cargo.” This provision prevents carriers from imposing excessive charges unrelated to actual costs.

FMC rule update of May 2024

In May 2024, the FMC issued a detailed rule clarifying detention and demurrage billing procedures, which took effect on May 28, 2024. This rule addresses three key areas:

Billing eligibility: Invoices may only be issued to the party that entered into the ocean transportation contract, or to the consignee. Multiple parties cannot be billed simultaneously for the same charges. This prevents shippers from receiving duplicate invoices from multiple parties.

Invoicing timeline: Common carriers and marine terminal operators (MTOs) must issue invoices within 30 calendar days of the charges being incurred. Non-vessel operating common carriers (NVOCCs) have an additional 30 days to invoice their customers, providing a clear timeframe for each party in the supply chain.

Dispute procedures: When disputes arise, the invoicing party must provide the invoiced party with at least 30 calendar days from invoice issuance to submit a request for mitigation, refund, or waiver. This ensures shippers have sufficient time to gather documentation and make their case.

Global variations in detention regulation

While OSRA-22 and FMC regulations apply to the United States, detention practices and regulations vary significantly in other regions.

European Union: The EU has no single unified detention regulation. Instead, individual member states and port authorities set their own rules. However, EU competition law generally requires that detention charges be “reasonable and proportionate” to actual costs.

Canada: Canadian detention practices differ from the US. Many Canadian carriers combine detention and demurrage free time, allowing shippers to use free days for either in-terminal or off-terminal purposes. This provides greater flexibility but can create confusion.

Asia-Pacific: Countries such as Singapore, Hong Kong, and Australia have varying approaches. Some ports have published tariffs with specific detention rates; others allow carriers to set rates more freely. Shippers operating in Asia should carefully review each carrier’s tariff.

Latin America: In Latin America, terminology is often reversed compared to the US. “Detention” may refer to terminal charges, while “demurrage” refers to off-terminal charges. Shippers must read tariff documents carefully to understand what each term means in a given region.

What are the strategies for disputing detention charges?

When detention charges may be invalid

Not all detention charges are valid. Shippers have the right to dispute charges that are:

  • Incorrectly calculated: The charge was calculated using the wrong rate, wrong number of days, or wrong equipment type
  • Billed to the wrong party: The shipper was billed when the consignee should have been billed, or vice versa
  • Related to carrier negligence: The carrier caused the delay (e.g., late vessel arrival, terminal congestion beyond normal levels)
  • Issued outside the 30-day window: Under OSRA-22, invoices issued more than 30 days after charges were incurred may not be valid
  • Missing required data elements: Invoices missing the 13 required OSRA-22 data elements may be disputed

Documentation required for disputes

To successfully dispute a detention charge, shippers should gather:

  • Original detention invoice: The complete invoice from the carrier
  • Carrier tariff: The published tariff showing the free time terms and detention rates that should have been applied
  • Bill of lading (B/L): The original B/L showing the terms of the ocean transportation contract
  • Proof of return: Documentation proving when the container was actually returned (gate confirmation, carrier confirmation)
  • Customs clearance records: Documentation showing when clearance was completed, if delays were customs-related
  • Communication records: Emails, messages, or other communications showing when the shipper was notified of container availability and pickup deadlines
  • Pickup records: Documentation from the freight transport company showing pickup times and any delays

Dispute procedure under OSRA-22

Under OSRA-22 and the FMC’s May 2024 rule, the dispute procedure is as follows:

  1. Shipper receives invoice: The shipper receives a detention invoice from the carrier or NVOCC.
  2. 30-day dispute window: The shipper has 30 calendar days from invoice issuance to file a dispute or request for waiver/mitigation.
  3. Shipper files dispute: The shipper submits documentation supporting the dispute, explaining why the charge is invalid or should be waived/mitigated.
  4. Carrier responds: The carrier must respond to the dispute within a specified timeframe (typically 15–30 days, depending on carrier policy).
  5. Resolution or escalation: If the carrier rejects the dispute, the shipper may escalate to the FMC or seek legal recourse, although this is rare.

In practice, many carriers prefer negotiation over litigation. Shippers with strong documentation and clear evidence of error often find that carriers prefer to waive or reduce charges rather than face a formal dispute.

What are the differences in detention practices worldwide?

North America

In the United States and Canada, detention practices are relatively standardized thanks to OSRA-22 and similar regulations. However, differences exist:

  • US East Coast: Ports such as New York and Baltimore typically offer 4–5 working days of detention free time. Rates range from $100 to $200 per day.
  • US West Coast: Ports such as Los Angeles and Long Beach typically offer 2–4 working days. Rates range from $100 to $175 per day.
  • Canada: Many Canadian carriers offer combined demurrage/detention free time (e.g., 10 combined free days), providing greater flexibility.

Europe

Detention practices in Europe vary by port and carrier:

  • Hamburg: One of Europe’s largest ports, Hamburg offers 3 working days of detention free time for standard containers at rates of €25–€65 per day, escalating after day 3.
  • Antwerp: Belgium’s main port offers similar terms: 2–6 working days of free time (depending on equipment and mode) at rates of €25–€70 per day.
  • Rotterdam: The Netherlands’ largest port offers varying free times depending on carrier and equipment type.

Asia-Pacific

Detention practices in Asia are highly variable:

  • Singapore: One of the world’s busiest ports, Singapore offers minimal free time (often 2–3 days) and charges $50–$100+ per day.
  • Hong Kong: Similar to Singapore, with 2–3 days of free time and rates of HK$300–$600+ per day.
  • Shanghai: China’s main port offers 3–5 days of free time at rates of RMB 200–400+ per day.

Latin America and Oceania

In these regions, detention terminology and practices often differ from North America:

  • Reversed terminology: In some Latin American ports, “detention” refers to terminal charges and “demurrage” refers to off-terminal charges – the opposite of US practice.
  • Higher rates: Detention rates in Latin America and Oceania are often higher than in developed markets, reflecting higher costs and lower container volumes.
  • Less standardization: Fewer regulations mean carriers have more freedom to set rates, leading to greater variation.

Summary: Key takeaways on detention charges

  1. Detention is a per diem charge for holding containers outside the port beyond free time, distinct from demurrage, which applies at the port.
  2. Free time typically ranges from 2 to 7 days, depending on carrier, route, and equipment type. Understanding your specific free time is essential.
  3. Detention charges can range from $50 to $175 per day for standard containers, with refrigerated containers commanding significantly higher rates.
  4. Prevention through planning is far more cost-effective than managing detention charges after they have accumulated.
  5. OSRA-22 and FMC regulations provide shippers with tools to dispute invalid charges and require carriers to provide transparency.
  6. Global variations exist, so shippers operating internationally must understand local detention practices and regulations.
  7. Real-time tracking and communication are essential tools for managing detention risk in modern logistics.


Other container news...

Shipping Containers Stupava Slovakia

25. 6. 2026

Shipping containers are standardized steel containers that were originally used to transport goods across seas and oceans. Today, shipping containers are a popular solution in Stupava and throughout Slovakia not only for storage, but also for construction purposes, commercial use and even housing. In Stupava, located near Bratislava, there is a growing demand for renting and buying used shipping containers for various purposes.

Shipping Containers Senec Slovakia

25. 6. 2026

Shipping containers are a modern and practical solution for storage, transportation and many other commercial and personal needs. In Senec, Slovakia, shipping containers are becoming an increasingly popular choice among businesses and individuals looking for flexible and durable space. This article will provide you with a comprehensive overview of shipping containers, their applications, availability in Senec and everything you need to know before buying or renting one.

Shipping containers Považská Bystrica Slovakia

23. 6. 2026

Shipping containers in Považská Bystrica represent a key solution for storage, transportation and modern construction projects in Slovakia. This article will provide you with a comprehensive overview of what shipping containers are, how they are used in Považská Bystrica and what services are available in this area.

Shipping containers Nové Zámky Slovakia

23. 6. 2026

Shipping containers in Nové Zámky are a key part of modern logistics and transport in Slovakia. As standardized steel units, shipping containers enable efficient transportation of goods over long distances with minimal costs and maximum protection. Nové Zámky, as an important urban center in western Slovakia, has become a major center for the sale, rental and distribution of shipping containers due to its strategic location and good connections to the transport infrastructure.