☣️ Chemical Reactivity Hazard Incompatibility Matrix Simulator
This simulation provides a matrix of chemical incompatibilities for safe storage, ensuring that incompatible chemicals are not stored together to prevent potential hazards and reactions.
Chemical Hazard Classes & Warehouse Storage
Industrial and laboratory warehouses routinely store thousands of distinct chemical products side by side. Each substance carries an intrinsic reactivity profile defined by DOT/OSHA hazard class, and storing the wrong two classes within reach of each other is one of the most preventable causes of catastrophic industrial accidents.
- 9: DOT hazard classes (49 CFR 172.101 system)
- 29 CFR 1910.1200: OSHA HazCom standard (SDS + labeling mandate)
- ~150: US chemical warehouse fires/yr (NFPA structure-fire data)
- >3,000: Chemicals needing SDS review (typical mid-size facility)
The five storage-relevant reactivity classes
While the DOT/UN system defines 9 formal transport hazard classes, chemical storage safety planning groups substances by *reactivity behavior* — which is what actually predicts dangerous mixing:
• Oxidizers (DOT Class 5): release oxygen or otherwise accelerate combustion. Includes nitrates, peroxides, chlorates, and hypochlorites (bleach, pool chemicals). • Flammables/combustibles (DOT Class 3): ignite readily; vapors form explosive mixtures with air. Includes solvents, alcohols, fuels, thinners. • Acids (DOT Class 8, acidic): corrosive, proton-donating. Sulfuric, nitric, hydrochloric, acetic acid. • Bases/caustics (DOT Class 8, basic): corrosive, proton-accepting. Sodium hydroxide, ammonia solutions, amines. • Water-reactives (DOT Class 4.3): react violently with moisture, generating heat and flammable/toxic gas. Alkali metals, calcium carbide, metal hydrides.
A sixth cross-cutting category — toxics/poisons (cyanide and sulfide salts) — is often shelved with bases but reacts violently with acids, so it is treated as a special case within the Acid–Base pairing.
OSHA 29 CFR 1910.106 and NFPA 400 both require that "incompatible materials shall be stored to prevent contact" — the specific method (distance, barrier, or separate room) is left to a documented hazard assessment, which is exactly what an incompatibility matrix formalizes.
Why warehouse layout is the primary control
Chemical reactivity itself cannot be engineered away — sulfuric acid will always react violently with a strong base. The only practical control is preventing contact, and that is a *layout* problem before it is a chemistry problem:
• Shelving order: chemicals are frequently racked alphabetically by product name or by supplier delivery sequence rather than by hazard class — a "silent" root cause found in most warehouse incident investigations. • Container failure is assumed: drums corrode, valves fail, forklifts puncture totes. Segregation must protect against an assumed future leak, not just today's intact packaging. • Gravity and drainage: floor slope and floor drains can carry a spill from one bay into another even when shelves are physically separated — secondary containment berms address this. • Human factors: mislabeled containers, decanted "unknown" bottles, and rushed put-away during receiving are consistently cited by the U.S. Chemical Safety Board (CSB) as precursors to mixing incidents.
The Safety Data Sheet (SDS) as the source document
Since the OSHA HazCom 2012 update aligned U.S. labeling with the UN Globally Harmonized System (GHS), every chemical product must ship with a 16-section Safety Data Sheet. Section 10 ("Stability and Reactivity") is the authoritative source for incompatibility data used to build a facility-specific matrix:
10.1 Reactivity — 10.2 Chemical stability — 10.3 Possibility of hazardous reactions — 10.4 Conditions to avoid — 10.5 Incompatible materials — 10.6 Hazardous decomposition products.
A rigorous warehouse safety program extracts Section 10.5 from every SDS on-site, cross-references it against every other stored product, and produces a facility-specific incompatibility matrix — the exact visualization in Stage 2 of this simulation, built from generic class-level data rather than a single site's full product list.
Building the Incompatibility Matrix
An incompatibility matrix is a simple but powerful engineering-control tool: a grid where every stored chemical class is checked against every other, and the cell is color-coded by reaction severity. It converts scattered SDS data into a single at-a-glance layout reference for warehouse designers and safety officers.
- 10: Class pairs in a 5-class matrix (unique combinations, C(5,2))
- 49 CFR §177.848: DOT segregation table (transport-specific rules)
- Ch. 11–13: NFPA 400 chapters on segregation (storage-specific rules)
- 4: Typical matrix severity tiers (low / moderate / high / critical)
Reading the matrix — four severity tiers
Each cell in the matrix represents the worst credible outcome if the two classes on its row and column were to mix, ranked into four tiers used throughout this simulation:
• LOW (green): minor or no significant reaction; general good practice separation is sufficient. • MODERATE (yellow): noticeable heat, gas, or corrosion; requires distance or a physical barrier. • HIGH (orange): rapid exothermic reaction or toxic gas evolution; requires dedicated bays and containment. • CRITICAL (red): fire, explosion, or immediately life-threatening gas release; requires separate fire-rated rooms or buildings under NFPA 400/30.
The diagonal (a class against itself) is excluded — same-class storage still requires container compatibility checks (e.g., concentration, stabilizer depletion) but is outside the scope of a cross-class matrix.
Regulatory segregation tables that inform the matrix
Several overlapping regulatory frameworks provide the underlying rules a facility-specific matrix should encode:
• DOT 49 CFR §177.848 Segregation Table: governs mixed loading in transport vehicles, defining four relationships — "may be loaded together," "away from" (min. 1.2 m / 4 ft), "separated from" (physical barrier or greater distance), and "must not be loaded, transported, or stored together." • NFPA 400 (Hazardous Materials Code): sets maximum allowable quantities, control areas, and separation distances for facility storage, including a 20 ft or 1-hour fire-barrier rule for many Class 3 oxidizer scenarios. • NFPA 30 (Flammable and Combustible Liquids Code): governs flammable-liquid storage rooms, cabinet limits (max 60 gal Class I per cabinet, 120 gal aggregate), and required separation from oxidizers and ignition sources. • OSHA 29 CFR 1910.106 / .119: general industry storage and Process Safety Management requirements for highly hazardous chemicals.
No single number applies to every chemical pair — the matrix severity tier, not a fixed distance, is what should drive facility design decisions; a CRITICAL pair may need a fire-rated wall even at short distance, while a LOW pair may be safe with just an open aisle.
Common critical-severity pairs and their chemistry
A handful of class combinations account for the overwhelming majority of documented storage-mixing incidents:
• Oxidizer + Flammable: the oxidizer supplies oxygen faster than air can, dramatically accelerating combustion rate — often the difference between a contained fire and a detonation. • Oxidizer + Water-reactive: water-reactive metals are already prone to self-heating; an oxidizer nearby removes the need for atmospheric oxygen to sustain combustion. • Acid + Water-reactive (e.g. metal hydrides, carbides): acids supply protons even faster than water, causing extremely rapid hydrogen evolution plus a strongly exothermic acid-base-like reaction. • Acid + Cyanide/Sulfide salts: protonation liberates HCN or H2S gas — both are potent chemical asphyxiants, lethal at concentrations in the tens to low-hundreds of ppm. • Oxidizer (hypochlorite) + Base (ammonia): produces chloramine gas, a severe respiratory irritant responsible for thousands of accidental poisonings annually, mostly outside industrial settings from mixed household cleaners.
Accidental Mixing — What Actually Happens
When incompatible chemicals make contact, the outcome is not random — it follows well-characterized reaction chemistry that determines whether the hazard manifests as heat, toxic gas, fire, or explosion. Understanding the mechanism is what lets engineers size containment, ventilation, and fire suppression correctly.
- ~500 ppm: HCN lethal concentration (LC50, rat, 5 min) (inhalation)
- —: Chloramine gas IDLH (severe eye/lung irritant even sub-ppm)
- ~2.7 MJ/kg: Ammonium nitrate detonation energy (confined mass detonation)
- 4% v/v: H2 gas lower explosive limit (in air, from metal+acid/water)
Three reaction pathways: fire, gas, and violent heat
Nearly every dangerous chemical mixing incident falls into one of three mechanistic pathways, each requiring different emergency response:
• Fire/explosion pathway: an oxidizer accelerates combustion of a fuel (flammable liquid or reactive metal) beyond what atmospheric oxygen alone would support. Reaction rate can go from a slow smolder to a detonation-order event in seconds, especially in a confined space like a warehouse aisle.
• Toxic gas pathway: acid-base or redox chemistry liberates a gas that is itself the primary hazard rather than heat. Hydrogen cyanide (from acid + cyanide salts) and chloramine (from hypochlorite + ammonia) are the two most common industrial and household examples; both attack the respiratory system and can incapacitate before evacuation is possible.
• Violent heat/gas-evolution pathway: water-reactive metals or carbides contacting acid or water release hydrogen gas plus enough exothermic heat to auto-ignite that hydrogen — effectively self-igniting without any external spark.
Reaction severity in this simulation is scaled to the segregation distance slider: at 0 ft separation the full reaction energy is released instantly on contact; as distance increases toward the required separation, contact — and therefore reaction — is physically prevented.
Case study — hydrogen cyanide from acid + cyanide salts
Cyanide salts (sodium or potassium cyanide, used in electroplating and metal finishing) are basic, water-soluble solids that are chemically stable when kept alkaline. Their principal hazard emerges only on contact with acid:
NaCN + HCl → NaCl + HCN(g)
Hydrogen cyanide is a colorless gas with a faint bitter-almond odor that roughly 40% of people cannot detect by smell (a genetic anosmia trait). It blocks cellular cytochrome c oxidase, halting aerobic respiration at the cellular level — death can occur within minutes at high concentrations. This exact chemistry (acid + cyanide) was used historically in execution gas chambers, which is why cyanide plating baths are subject to strict acid-exclusion storage rules in every OSHA-regulated electroplating facility.
Case study — chloramine gas from bleach + ammonia
Sodium hypochlorite (household and industrial bleach, an oxidizer) reacting with ammonia (a base, common in glass cleaners and some industrial degreasers) produces chloramine vapors:
NaOCl + NH3 → NaOH + NH2Cl(g) [monochloramine, further reacting to NHCl2 and NCl3 with excess bleach]
Chloramine gas causes immediate coughing, chest pain, and pulmonary edema in enclosed spaces. Because both bleach and ammonia-based cleaners are common in both industrial janitorial closets and household cabinets, this is the single most frequently reported chemical-mixing exposure in U.S. poison control data — thousands of calls annually, occasionally fatal in enclosed bathrooms or storage closets with poor ventilation.
Segregated Storage Design — Distance & Containment
Once an incompatibility matrix identifies which class pairs are dangerous, the fix is architectural: minimum separation distances, fire-rated barrier walls, and secondary containment sized to hold a worst-case spill. These controls are specified in enforceable codes, not left to judgment.
- 110%: Secondary containment sizing rule (of largest container volume)
- 1–2 hr: Typical fire-barrier rating (NFPA 400) (for high-hazard separations)
- ≥20 ft: Oxidizer-to-combustible clearance (or equivalent fire barrier)
- 60 gal: Flammable cabinet capacity limit (NFPA 30) (Class I liquids per cabinet)
Three layers of engineering control
Segregated storage design layers three independent controls so that the failure of any one does not lead directly to a mixing event:
1. Distance: the simplest control — physical separation sized to the matrix severity tier (illustrated in this simulation as 3 ft for LOW, 8 ft for MODERATE, 15 ft for HIGH, and 25 ft for CRITICAL pairs). Distance alone is often sufficient for MODERATE-severity pairs.
2. Barrier: a physical wall, curb, or fire-rated partition that prevents contact even if distance is compromised (e.g., a fallen pallet or reaching forklift). NFPA 400 requires 1–2 hour fire-rated barriers for many HIGH/CRITICAL separations in lieu of larger distances where floor space is limited.
3. Secondary containment: curbing, berms, or spill pallets sized to hold 110% of the largest single container in the area (a rule borrowed from EPA SPCC regulations, 40 CFR 112) so that a leak cannot flow across a floor into an adjacent, incompatible bay.
These three controls are deliberately redundant — code-compliant design assumes any single control can fail (a barrier crack, a container overfill) and still relies on the other two to prevent contact.
Ventilation and detection as a fourth layer
Even a well-segregated warehouse benefits from active hazard detection, especially for gas-forming pairs:
• Mechanical ventilation: high-hazard storage rooms require dedicated exhaust (often 1 cubic foot per minute per square foot of floor area under NFPA 30) to prevent flammable-vapor or toxic-gas accumulation even from a contained, non-mixing leak. • Gas detection: fixed sensors for combustible gas (%LEL), pH-shift, or specific toxic gases (HCN, Cl2, NH3) provide early warning before concentrations reach dangerous levels, triggering alarms and automatic ventilation boost. • Spill response kits: neutralizing agents (e.g., soda ash for acid spills, citric acid for base spills) staged at each segregation boundary allow rapid intervention before a small leak becomes a large mixing event.
Sizing the required separation in this simulation
This simulation uses simplified, illustrative separation distances mapped to the four severity tiers, intended to demonstrate the *principle* that higher severity requires proportionally larger clearance or an equivalent fire-rated barrier — actual code-required distances vary by chemical quantity, container type, sprinkler protection, and local fire-code amendments, and must be verified against NFPA 400, NFPA 30, and the facility's site-specific hazard assessment.
As the "Segregation Distance" slider is increased toward the required threshold for the selected pair, the reaction visualization in Stage 3 and the floor-plan barrier in this stage show contact being physically prevented — reaction energy drops to zero because the two chemical classes can no longer touch, even under a worst-case container failure.
Fully Zoned, Code-Compliant Warehouse
The end state of a chemical segregation program is a warehouse where every hazard class occupies its own bay, every bay meets or exceeds its required clearance or barrier rating, and secondary containment plus ventilation are sized for a worst-case failure — so that even human error or equipment failure cannot bring two incompatible chemicals into contact.
- —: OSHA inspection citation reduction (proper segregation is a top-cited item avoided)
- Annual: Recommended matrix review interval (or on new-chemical intake)
- NFPA 704: Placarding standard (diamond hazard rating on each bay)
- ~12,500: PSM-covered facilities (US, approx.) (OSHA Process Safety Mgmt scope)
What a compliant zone plan looks like
A finished, compliant chemical warehouse layout typically includes:
• Dedicated bays per hazard class, each sized to the facility's maximum allowable quantity (MAQ) under NFPA 400 / local fire code. • NFPA 704 placards ("fire diamonds") posted at every bay entrance and building entrance, rating health, flammability, reactivity, and special hazards 0–4. • Curbed or bermed secondary containment under every bay, independently drained or collected (never sharing a floor drain across incompatible bays). • Fire-rated partition walls or minimum code clearance between every CRITICAL/HIGH-severity pair per the facility incompatibility matrix. • Dedicated or interlocked ventilation for gas-forming hazard classes, with fixed gas detection tied to alarm and exhaust boost. • A written, annually reviewed chemical inventory cross-referenced against the incompatibility matrix whenever a new product is received.
The single highest-leverage control is procedural, not architectural: a mandatory hazard-matrix check at receiving, before any new chemical is shelved — most real-world mixing incidents trace back to a put-away decision that skipped this step.
Regulatory and economic case for compliance
Beyond preventing injury and death, code-compliant segregation has clear economic and legal grounding:
• OSHA General Duty Clause (Section 5(a)(1)) can cite employers for known chemical-mixing hazards even absent a specific standard violation. • Process Safety Management (29 CFR 1910.119) applies to roughly 12,500 U.S. facilities handling threshold quantities of highly hazardous chemicals, mandating formal Process Hazard Analysis that must address incompatible-material storage. • Insurance underwriters for chemical storage risk routinely require documented segregation matrices and increasingly deny or surcharge coverage for facilities without one following a CSB or EPA incident-database review. • The U.S. Chemical Safety Board (CSB) has issued repeated recommendations following fatal mixing incidents specifically calling for facility-wide incompatibility matrices as a "recognized and generally accepted good engineering practice."
From matrix to muscle memory
The final, and most durable, layer of protection is training: every worker who receives, moves, or stores chemicals should be able to answer "can this go next to that?" without consulting a document, for the classes present at their facility.
Effective programs combine:
• Color-coded shelf labeling matching the matrix severity tiers used throughout this simulation (green/yellow/orange/red). • Mandatory hazard-matrix sign-off during new-chemical receiving, before a product is moved from the dock to a shelf. • Periodic drills simulating a mixing event (heat, gas, or fire) so responders recognize the signature and evacuate/respond correctly within seconds, not minutes.
When distance, barriers, containment, ventilation, and trained personnel operate together, the probability of an incompatible-chemical contact event — even given inevitable individual failures — is driven close to zero.
This simulation provides a matrix of chemical incompatibilities for safe storage, ensuring that incompatible chemicals are not stored together to prevent potential hazards and reactions.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install