Ending inventory refers to the value of goods available for sale at the end of an accounting period. It is a critical component of a company's financial statements, as it directly impacts the cost of goods sold (COGS) and, consequently, the gross profit. Ending inventory can include finished goods, work-in-progress items, and raw materials.