A cost code is a unique identifier used in accounting and project management to categorize and track expenses.