What Is the IMDG Code?

2026-06-14 |   By GOTEC Editorial Team — Dangerous Goods Division
Key Takeaways
  • The IMDG Code classifies dangerous goods into 9 hazard classes and is mandatory for all shipments of dangerous goods by sea under SOLAS Chapter VII, with compliance enforced globally.
  • The Code is updated every two years through the IMO's Amendment cycle; shippers must use the current edition to avoid cargo rejection at port.
  • Non-compliance with the IMDG Code can result in voyage prohibition, substantial fines (routinely exceeding $50,000 per violation), and criminal liability for willful misdeclaration.

The International Maritime Dangerous Goods Code — universally referred to as the IMDG Code — is the global regulatory standard governing the safe transport of dangerous goods by sea. Adopted by the International Maritime Organization (IMO) under the authority of the International Convention for the Safety of Life at Sea (SOLAS), Chapter VII, the IMDG Code is not a voluntary guideline or industry best practice: it is mandatory international law. Every container ship carrying chemicals, batteries, gases, flammable liquids, or any of the thousands of substances classified as dangerous goods must comply with the IMDG Code's requirements for classification, packaging, labeling, documentation, stowage, and segregation. The Code's reach extends to every party in the maritime supply chain — from the manufacturer preparing goods for export to the terminal operator stowing containers aboard the vessel.

What Is the IMDG Code?

The IMDG Code is a comprehensive regulatory framework spanning two volumes and a supplement, published by the IMO. Its legal foundation lies in SOLAS Chapter VII (Carriage of Dangerous Goods) and MARPOL Annex III (Prevention of Pollution by Harmful Substances Carried by Sea in Packaged Form). Together, these conventions require ships carrying dangerous goods in packaged form to comply with the detailed provisions set out in the IMDG Code. As of 2026, the Code has been adopted by all 176 IMO member states, making it a truly universal standard.

The Code's primary objective is to prevent accidents to persons or property and to protect the marine environment. It achieves this through three interconnected regulatory pillars: classification (identifying what is dangerous and how dangerous it is), containment (specifying packaging that can withstand the rigors of sea transport without leaking or rupturing), and communication (ensuring that everyone handling the goods — from packer to ship's master — understands the hazards and the precautions required).

The classification system organizes dangerous goods into 9 classes, some with subdivisions:

  • Class 1: Explosives
  • Class 2: Gases (2.1 Flammable, 2.2 Non-flammable/non-toxic, 2.3 Toxic)
  • Class 3: Flammable liquids
  • Class 4: Flammable solids (4.1 Flammable solids, 4.2 Spontaneously combustible, 4.3 Dangerous when wet)
  • Class 5: Oxidizing substances and organic peroxides
  • Class 6: Toxic and infectious substances
  • Class 7: Radioactive material
  • Class 8: Corrosive substances
  • Class 9: Miscellaneous dangerous substances and articles (including lithium batteries and environmentally hazardous substances)

How Does the IMDG Code Work in Practice?

For any given dangerous substance, the IMDG Code provides a complete set of transport requirements organized around the UN Number (a four-digit identifier assigned by the UN Committee of Experts). The Code's Dangerous Goods List — a comprehensive table indexed by UN Number — specifies for each entry: the proper shipping name, hazard class, packing group, subsidiary risks, special provisions, packing instructions, limited quantity and excepted quantity thresholds, stowage category, and segregation requirements.

The operational workflow for an IMDG-compliant shipment proceeds through several mandatory steps:

Classification. The shipper must correctly identify the hazard class, packing group, and UN Number for each dangerous substance. This is a technical determination that often requires reference to chemical safety data and test reports. Misclassification — treating a Class 3 flammable liquid as a lower-risk Class 9 substance, for example — is one of the most common and dangerous compliance failures.

Packaging. Dangerous goods must be packed in UN-approved packaging that has passed a series of performance tests (drop, stack, leakproofness, hydraulic pressure) appropriate to the hazard. Each package must bear UN specification marks certifying the packaging type and its tested performance level. The Code specifies permitted packaging types, maximum quantities, and closure requirements for each substance.

Marking and labeling. Every package must display the UN Number, proper shipping name, hazard class labels, orientation arrows (for liquids), and any subsidiary risk labels. The sizes, colors, placement, and durability of these marks are all specified in the Code. Incorrect or missing labels are among the most frequent causes of DG shipment rejections at port.

Documentation. The shipper must complete a Dangerous Goods Declaration (DGD) — a legally binding document certifying that the goods have been properly classified, packed, marked, and labeled in accordance with the IMDG Code. The DGD must be signed by a person with appropriate DG training. In addition, a container packing certificate is required when goods are packed into a container or vehicle.

Stowage and segregation. Aboard the vessel, dangerous goods must be stowed according to the Code's stowage categories (which specify whether a substance may be carried on deck, under deck, or both) and segregated from incompatible substances. The segregation table — a key reference in the Code — defines the minimum distances and physical barriers required between different hazard classes to prevent dangerous reactions in the event of a leak or fire.

Why Does the IMDG Code Matter?

The IMDG Code's importance can be measured by the consequences of non-compliance. Maritime history includes catastrophic incidents — the 2018 Maersk Honam fire, the 2012 MSC Flaminia explosion, the 2019 Yantian Express fire — traced to misdeclared or improperly packed dangerous goods. Each of these incidents resulted in crew fatalities, cargo losses exceeding $100 million, and pollution damage. The common thread in maritime DG incidents is almost always a breakdown in IMDG Code compliance: undeclared calcium hypochlorite, misclassified charcoal, poorly packed lithium batteries.

For businesses, IMDG compliance is not simply about avoiding disasters. Non-compliant shipments are routinely rejected at port, causing delays, demurrage charges, and breach-of-contract claims from buyers awaiting cargo. Customs authorities in major trading nations have intensified DG enforcement in recent years, with penalties for undeclared or misdeclared dangerous goods reaching $50,000 to $100,000 per violation in jurisdictions including the United States, China, and the European Union. Insurers are increasingly denying claims when investigations reveal IMDG non-compliance contributed to a loss.

Technology Impact on IMDG Compliance

Technology is transforming IMDG Code compliance at both the documentation and inspection levels. On the documentation side, DG software platforms now integrate the full IMDG Code Dangerous Goods List, enabling shippers to look up UN Numbers and automatically generate compliant DGDs, packing instructions, and segregation checks. These systems reduce — but do not eliminate — the risk of human error in classification and documentation.

At the inspection level, non-intrusive container scanning technology plays an increasingly important role in verifying IMDG compliance. High-energy X-ray and gamma-ray scanning systems — including the container and vehicle inspection platforms that GOTEC manufactures — can identify the internal configuration of cargo, flagging containers whose contents do not match their declarations. When a container declared as "textiles" reveals high-density patterns consistent with chemical drums or battery packs, the scanner alert triggers a physical inspection. AI-powered image recognition, trained on millions of container scans, is making these cross-checks faster and more accurate. As customs and port authorities deploy more scanning infrastructure at ports worldwide, the ability to detect undeclared and misdeclared dangerous goods before they are loaded aboard a vessel is becoming a realistic enforcement capability rather than an aspirational goal.

Frequently Asked Questions

How often is the IMDG Code updated?

The IMDG Code is updated on a two-year amendment cycle by the IMO's Maritime Safety Committee. Each new edition — identified by its amendment number and the year of mandatory application (e.g., Amendment 42-24, which became mandatory on January 1, 2026) — is published approximately one year before it takes effect, providing a twelve-month transitional period during which either the old or new edition may be used. The two-year cycle reflects the need to incorporate new chemical products entering international trade, updated scientific evidence on substance hazards, and lessons learned from maritime incidents involving dangerous goods. Shippers and carriers must monitor the amendment cycle closely: using an outdated edition can result in rejected shipments and regulatory penalties.

Who is responsible for IMDG Code compliance in a shipment?

IMDG Code compliance responsibility is distributed across the entire logistics chain. The shipper (consignor) bears primary and most extensive responsibility: correct classification, selection of UN-approved packaging, application of marks and labels, and accurate completion of the Dangerous Goods Declaration. The carrier (shipping line) must verify the documentation, ensure proper stowage and segregation aboard the vessel, and has the right — and duty — to refuse non-compliant shipments. The packer and container consolidator are responsible for proper physical packing of the goods and completion of the container packing certificate. The freight forwarder, if acting as the shipper's agent in preparing DG documentation, assumes the shipper's compliance obligations. Port terminal operators must handle DG containers in accordance with segregation requirements and emergency response procedures. Critically, while legal liability is distributed, the practical reality is that every party has both the authority and the obligation to stop a non-compliant shipment from moving forward.

Related Terms

A thorough understanding of the IMDG Code requires familiarity with these related dangerous goods concepts and standards:

  • UN 3536 — Lithium Batteries Installed in Cargo Transport Units — A specialized UN Number covering lithium batteries that are installed in equipment contained within a cargo transport unit. This relatively new classification addresses the growing volume of battery-powered equipment shipped in containers and the unique fire risks lithium batteries present at sea.
  • IATA DGR (Dangerous Goods Regulations) — The parallel regulatory framework for dangerous goods transported by air. While based on the same UN Model Regulations as the IMDG Code, the IATA DGR is generally more restrictive. Many substances permitted by sea under the IMDG Code are prohibited or subject to stricter limitations by air.
  • MSDS (Material Safety Data Sheet) — The document providing detailed chemical safety information that serves as the primary reference for IMDG classification. The MSDS supplies the physical, chemical, and toxicological data on which the hazard class, packing group, and subsidiary risk determinations are based.
  • DG Packaging Certificate — The certification verifying that packaging used for dangerous goods has passed the UN performance tests specified in the IMDG Code. Every DG shipment must use packaging that is both UN-approved and appropriate for the specific substance and mode of transport.

Shipping dangerous goods by sea? Ensure your port inspection processes are IMDG-compliant.

Contact GOTEC Explore More Resources