Demurrage vs Detention and Customs Exam Fees: Who Pays
Demurrage vs detention explained, plus US customs exams (X-ray, tailgate, intensive, CET): who pays when a container from China is held, and how to avoid it.

On this page
- What is the difference between demurrage and detention?
- What is free time, and when does the clock start?
- What happens in a US customs exam?
- Who pays for a customs exam and the demurrage it causes?
- Why are shipments from China held by customs?
- How do you avoid demurrage, detention and exam delays?
- How do you dispute a demurrage or detention invoice in the US?
- How does XINTING help keep your container moving?
- FAQ
Key takeaways
- Demurrage is charged when a full container stays inside the port terminal beyond its free days; detention is charged when the carrier's container stays outside the terminal, full or empty, beyond its free days; storage is charged by a terminal or CFS warehouse for cargo left after its free days.
- US Customs (CBP) does not charge for examining cargo, but the importer pays to prepare the goods for examination, to truck them to a Centralized Examination Station, the station's fees, and the storage or demurrage the hold adds.
- A US customs exam can be a non-intrusive X-ray scan of the sealed container, a tailgate exam at the container doors, or an intensive exam at a Centralized Examination Station; a "CET exam" is one ordered by CBP's (Anti-Terrorism) Contraband Enforcement Team.
- Under the FMC's billing rule for US ports (46 CFR part 541, in force since 28 May 2024), a demurrage or detention invoice must be issued within 30 days of the last charge and carry set information, and the billed party has at least 30 days to ask for mitigation, a refund or a waiver.
- Matching invoices, packing lists and bills of lading, correct HS codes, an ISF filed at least 24 hours before loading, and a broker, bond and cargo release ready before the ship arrives are what keep a customs hold from turning into weeks of charges.
Demurrage is what the shipping line, or at some US ports the terminal, charges when a full container stays inside the port terminal beyond its free days. Detention is what the line charges when you keep its container outside the terminal, full or empty, beyond its free days. A US customs exam is a separate cost: CBP does not charge for looking at your cargo, but the importer pays for moving it to the exam site and for the exam station's handling, and the hold often pushes the container past its free time. That is how one exam turns into several bills.
This guide, written as of 19 November 2026, explains each charge, how free time works, what happens in X-ray, tailgate and intensive exams (and what people mean by a "CET exam"), who pays when the hold is not your fault, how to dispute a US invoice under the Federal Maritime Commission's billing rule, and the steps that keep a shipment from China moving.
What is the difference between demurrage and detention?
Both are charges for keeping the carrier's container longer than agreed. The difference is where the container is while the clock runs, and that decides what stops the charge.
| Charge | Where the container or cargo is | Usually billed by | Stops when |
|---|---|---|---|
| Demurrage | Full container inside the terminal after discharge | Ocean carrier, or the marine terminal at some US ports | The container leaves the terminal |
| Detention (often called per diem in the US) | Carrier's container outside the terminal, full or empty | Ocean carrier | The empty container is returned |
| Storage | Cargo or container in a terminal or CFS warehouse after its free days | Terminal operator or CFS | The cargo is collected |
| Exam costs | Container moved to an exam site or Centralized Examination Station (CES) | Trucker and exam station, usually paid first by your broker or forwarder | CBP releases the cargo and it is collected |
Daily rates are set in the carrier's or terminal's tariff, or in your service contract, and often rise in steps the longer the container stays. Some carriers combine the two into one demurrage-and-detention allowance. The glossary has short definitions of demurrage and detention.
What is free time, and when does the clock start?
Free time is the number of days a carrier or terminal allows before it starts charging. Demurrage free time normally runs from discharge, when the container becomes available at the terminal; detention free time runs from the moment the container leaves the terminal until it is returned empty. The number of days depends on the carrier, the port and your contract, and on an FCL booking it can sometimes be extended. Ask at booking, not after the ship arrives.
With LCL, the container belongs to the consolidator and is unpacked at a container freight station (CFS). Your risk is storage at the CFS once its free days end, plus delay if anything in the shared container is held: a hold on one consignee's goods can stop the whole container from being unpacked. Our LCL vs FCL guide explains when a full container is the safer choice.
The clock also runs for reasons that have nothing to do with customs. The freight may be unpaid, the telex release or original bill of lading may not have reached the destination, the entry or customs bond may not be ready, or no truck or warehouse appointment may be free. That is why a container that clears customs in a day can still collect demurrage.
What happens in a US customs exam?
US Customs and Border Protection (CBP) selects shipments for examination through risk targeting and at random. Your customs broker sees the hold, and the container cannot leave the port until CBP releases it. There are three common levels:
- Non-intrusive inspection (X-ray, often called a VACIS exam): the sealed container is scanned with large-scale X-ray or gamma-ray equipment. If the image raises no questions, the hold is lifted; if it does, the container goes on to a physical exam.
- Tailgate exam: officers break the seal, open the doors and look at, or pull out, the cargo near the doors.
- Intensive exam: the container is trucked to a Centralized Examination Station, a privately operated facility approved by CBP, and unloaded fully or partly so officers can check the goods against the entry.
"CET exam" is importers' shorthand for an exam ordered by CBP's Contraband Enforcement Team, today the Anti-Terrorism Contraband Enforcement Team (A-TCET), which looks for drugs, weapons, undeclared currency and other contraband. It can be an X-ray or a physical exam. Other agencies can hold cargo too, for example the Food and Drug Administration, the Consumer Product Safety Commission or the Department of Agriculture for goods they regulate.
There is no set time for an exam. It depends on the port, the queue at the exam station and whether more than one agency is involved, and the container stays on hold until every hold is released.
Who pays for a customs exam and the demurrage it causes?
The importer does. CBP does not charge for examining goods, but its regulations place the expense of preparing merchandise for examination on the importer, and the importer, carrier or their agent pays to move cargo to a Centralized Examination Station and pays the station's fees. Your broker or forwarder usually pays these so the cargo can be released, then invoices you, which is why the bill tends to arrive from them.
Demurrage, detention and storage keep running during a government hold under most carrier and terminal tariffs, and the bill goes to the importer or the party named on the bill of lading. In the US, the FMC's 2020 interpretive rule judges whether such charges are reasonable by whether they still work as an incentive to move cargo, and it applies that test to government inspections as well, taking extenuating circumstances into account. The charges do not disappear, but the rule is the basis for asking a carrier to reduce or waive charges that built up while CBP held the container.
If the exam was ordered on a container you shipped as LCL, the exam and storage costs for the whole container may be shared among everyone with cargo inside, under the consolidator's or CFS's terms. Ask how a co-loaded exam is billed before you book.
Why are shipments from China held by customs?
Some exams are random, so no shipper can rule them out. Others are triggered by the data CBP receives, and those you can influence:
- Descriptions that are vague or don't match: "parts", "accessories" or "gift" instead of what the goods are, what they are made of and what they are for, or an invoice, packing list and bill of lading that disagree.
- Values that look too low for the goods, or a missing or wrong HS code.
- A late or inaccurate ISF for ocean freight, which must be filed no later than 24 hours before the cargo is loaded in China.
- Goods with extra compliance rules: products under additional duties or forced-labor enforcement, possible counterfeits, and items other agencies regulate, such as food-contact goods, children's products, cosmetics and electronics with batteries.
- A problem with someone else's goods in a co-loaded LCL container.
- For Australia, seasonal BMSB measures that require certain goods to be treated before release.
For Amazon sellers, a held container also means a missed FBA delivery appointment, so the delay can cost more than the fees. Our US customs clearance guide covers the importer of record, bonds and entry types in more detail.
How do you avoid demurrage, detention and exam delays?
- Make the documents tell one story. The commercial invoice, packing list and bill of lading should show the same goods, quantities, weights and values, with a plain description of what each item is and is made of. Our shipping documents checklist lists what each needs.
- Get HS codes and values right before you ship. Our customs team can pre-classify your products so the entry raises no questions.
- Have the importer side ready before the ship sails. File the ISF on time, and have the importer of record, customs bond and customs broker in place so the entry can be filed before arrival.
- Release the cargo before it lands. Pay the freight, arrange the telex release, and make sure the pre-alert and documents reach the destination so nothing waits on paperwork.
- Know your free days and your last free day. Ask for the free time at booking, follow the vessel and the discharge date with container tracking, and book the truck and the delivery appointment early.
- Return empty containers quickly. Detention runs until the empty container is back at the depot, so unload promptly at the warehouse.
- Choose FCL when a shared container is a risk. If the goods are time-critical or your volume is close to a container load, a full container keeps other shippers' holds away from your cargo.
Our tracking guide explains the milestones to watch between loading in China and delivery.
How do you dispute a demurrage or detention invoice in the US?
Since 28 May 2024 the FMC's Demurrage and Detention Billing Requirements (46 CFR part 541) have set rules for invoices that ocean carriers, NVOCCs and marine terminals issue for US ports. As of 19 November 2026:
- The invoice must be issued within 30 calendar days of the last day the charges accrued; if it is not, the billed party does not have to pay.
- It must carry set information: which containers and bill of lading it covers, why you are the party billed, the free time and the dates the charges ran, the rate and the amount, and a contact for questions and disputes. An invoice without the required information does not have to be paid.
- The billed party has at least 30 calendar days from the invoice to ask for mitigation, a refund or a waiver, and the billing party must try to resolve the request within 30 days.
- When an NVOCC passes charges on to its customer and the customer disputes them, the NVOCC gets extra time to dispute the carrier's invoice.
On 23 September 2025 the US Court of Appeals for the D.C. Circuit set aside the section that limited who may be billed (46 CFR 541.4), so the rule no longer fixes which party receives the invoice, and truckers can be billed where their contracts allow it; the invoice and dispute requirements above still apply. When you dispute, send the hold and release notices from your broker, the date the container became available and the dates you tried to collect or return it. You can also file a complaint with the FMC. Outside the US, demurrage and detention follow the carrier's tariff and your contract, and the same evidence supports a request for a waiver.
How does XINTING help keep your container moving?
No forwarder can stop customs from selecting a shipment, but consistent paperwork and a destination that is ready before arrival keep a hold from turning into weeks of charges. As an NVOCC we book FCL and LCL sea freight from ports across China, and our own container fleet trucks containers to and from the port in China. Before your goods sail, our customs team pre-classifies them with HS codes and prepares the export declaration from your invoice and packing list.
For the USA, the ISF must be filed at least 24 hours before loading, and our published US rates do not include US duties. Tell us who your importer of record and customs broker are when you request a quote, and we will confirm the terms and the steps at destination with your booking.
FAQ
What is demurrage in shipping?
Demurrage is a daily charge from the ocean carrier, or at some US ports the marine terminal, for a full import container that stays in the terminal after its free days. It stops when the container is picked up, so paying the freight, releasing the cargo and booking the truck before arrival keeps it down.
What is the difference between demurrage and detention?
Demurrage runs while the full container is still inside the terminal; detention runs while the carrier's container is outside the terminal, full or empty, until it is returned. Demurrage stops at pickup, detention when the empty container is back at the depot.
Do I have to pay demurrage if customs holds my container?
Usually yes: most carrier and terminal tariffs keep charging during government holds and bill the importer or the bill-of-lading party. In the US you can ask the billing party for mitigation, a refund or a waiver within 30 days of the invoice, and the FMC considers whether charges during a government inspection still served as an incentive to move the cargo.
What is a CET exam?
An exam ordered by CBP's Contraband Enforcement Team, now the Anti-Terrorism Contraband Enforcement Team, which looks for drugs, weapons, undeclared currency and other contraband. It may be an X-ray scan or a physical exam, and the importer pays the trucking, exam station and storage costs it causes.
How long does a CBP intensive exam take?
There is no set time. It depends on the port, the queue at the Centralized Examination Station and whether other agencies such as the FDA or CPSC are involved, and the container stays on hold until every hold is released. Demurrage or storage keeps running in the meantime.
Who pays for a customs exam on an LCL shipment?
The importers with cargo in the container. Depending on the consolidator's or CFS's terms, the cost of examining a co-loaded container may be shared among all consignees, even those whose goods were not the reason for the exam, so ask how exams are billed before you book.
Sources
- Federal Register: Demurrage and Detention Billing Requirements, final rule (26 February 2024)
- eCFR: 46 CFR part 541, Demurrage and Detention Billing Requirements
- Federal Register: FMC interpretive rule on demurrage and detention (18 May 2020)
- 19 CFR 151.6: Place of examination and the importer's costs
- eCFR: 19 CFR part 118, Centralized Examination Stations
- Holland & Knight: D.C. Circuit vacates key provision of FMC's demurrage and detention rule (October 2025)
Services and routes in this article
Send us the details — you'll get a confirmed door-to-door quote and a dedicated coordinator.
Read next
All insights
Alibaba Shipping: Cheapest Way to Ship from China by Size
The cheapest way to ship an Alibaba or 1688 order from China by size: express, air, LCL or rail, supplier shipping vs your own forwarder, a 100 kg example.

Freight Consolidation in China: Ship Many Suppliers as One
How freight consolidation in China works when you buy from several Alibaba, 1688 or factory suppliers: one warehouse, one shipment, one set of charges.

Destination Charges from China: THC, CFS and Hidden Fees
What destination charges on freight from China are (THC, CFS, D/O, clearance, duty), why cheap CIF and LCL quotes cost more, and how to get a no-surprise quote.