Cost accounting is a form of accounting that focuses on identifying, measuring, analyzing, and reporting all costs related to producing goods and services. It provides detailed costing data and reports to help with inventory valuation, production planning, and spending decisions.