GO:0048878: chemical homeostasis
Any biological process involved in the maintenance of an internal steady state of a chemical.