Uncertain chemical composition in excavation waste leads to high disposal costs and environmental liability. Real-time infrared quantification of organic and acidifying pollutants allows for precise chemical inerting of sludge to meet regulatory safety standards.