The chemical oxygen demand (COD) test is commonly used to indirectly measure the amount of organic compounds in water. Most applications of COD determine the amount of organic pollutants found in surface water (e.g. lakes and rivers) or wastewater, making COD a useful measure of water quality. It is expressed in milligrams per liter (mg/L