Cost of goods sold, or COGS, is the direct cost of the products your business sells. It includes costs tied to making or buying inventory, such as materials, merchandise, and direct labor.
For bookkeeping, the answer is simple: cost of goods sold is normally a debit. According to AccountingCoach, expense accounts normally carry debit balances. Since COGS is an expense, debiting COGS increases the account.
Is cost of goods sold a debit or credit?
Cost of goods sold is always a debit. COGS is an expense account, and expenses carry a normal debit balance under double-entry bookkeeping.
The logic is short:
Expenses reduce your net income.
Lower net income reduces owner's equity.
A decrease in equity is recorded as a debit.
So when your COGS goes up, you debit the account to record the expense. It follows the same rule as every other expense on your books, as covered in Investopedia's guide to cost of goods sold.
What kind of account is cost of goods sold?
Cost of goods sold is an expense account, not an asset or a liability. It records the direct cost of the products you sold to generate revenue.
Because it is an expense, its normal balance is a debit. The balance increases with a debit and decreases with a credit, the opposite of an asset like Inventory.
That classification is why COGS sits on the income statement, not the balance sheet, and why it reduces your profit for the period.
What is the formula for cost of goods sold?
Use one formula: Beginning Inventory + Purchases − Ending Inventory = COGS. It gives the total cost of the products sold in a period.
You need three figures from your records:
Beginning inventory
The value of stock at the start of the period, equal to last period's ending inventory.
Purchases
The cost of all new inventory bought during the period, including raw materials and goods for resale.
Ending inventory
The value of stock left at the end, from a physical count or an inventory system.
The IRS uses this same structure on Schedule C, Part III (Cost of Goods Sold), where sole proprietors report it.
How do you record a COGS journal entry?
Record COGS in three steps: calculate the value, debit COGS, then credit the inventory and purchases accounts for the same amount.
Step 1: Calculate COGS with Beginning Inventory + Purchases − Ending Inventory.
Step 2: Debit the Cost of Goods Sold account. This recognizes the expense and reduces your profit for the period.
Step 3: Credit Inventory (and Purchases) for an equal amount, so your debits and credits match.
Example: a single sale (perpetual inventory). You sell one item that cost $50. You record the expense the moment the sale happens:
| Account | Debit | Credit |
|---|---|---|
| Cost of Goods Sold | $50 | |
| Inventory | $50 |
Example: end of period (periodic inventory). Beginning inventory is $10,000, purchases are $5,000, and ending inventory is $8,000. COGS is ($10,000 + $5,000) − $8,000 = $7,000:
| Account | Debit | Credit |
|---|---|---|
| Cost of Goods Sold | $7,000 | |
| Ending Inventory | $8,000 | |
| Beginning Inventory | $10,000 | |
| Purchases | $5,000 |
This entry recognizes the expense, zeroes out the temporary Purchases account, and updates inventory to the correct ending value.
How does COGS affect your financial statements?
COGS affects two statements at once: it sets gross profit on the income statement and reduces inventory on the balance sheet.
On the income statement, COGS is subtracted from revenue to find gross profit. The formula is Revenue − COGS = Gross Profit, a core measure of how efficiently you sell.
On the balance sheet, the credit to Inventory lowers the value of that current asset, so your books show the stock you actually hold at period end.
An accurate COGS keeps both numbers honest. Overstate it and gross profit looks too low; understate it and profit looks inflated.
What mistakes should you avoid with COGS?
Two errors distort COGS most often: including indirect costs and ignoring inventory losses.
Including indirect costs
COGS covers only direct costs like raw materials and direct labor. Marketing, admin salaries, and rent are operating expenses and belong in a separate line, as the IRS Tax Guide for Small Business (Publication 334) explains.
Ignoring shrinkage and spoilage
Inventory that is lost, stolen, damaged, or expired still leaves your stock. If you skip that adjustment, ending inventory looks too high, COGS looks too low, and gross profit looks inflated. Count inventory regularly and adjust before you finalize COGS.
How do you keep your COGS accurate?
Keep COGS accurate with two habits: count inventory on a schedule and keep clean, current sales records.
Regular physical counts catch shrinkage before it distorts your numbers. Reliable sales data makes sure the revenue side of your gross profit calculation is right.
Your COGS is only as accurate as the sales data behind it. JIM's AI Business Agent gives you real-time sales analytics and reports inside the JIM app, so the revenue figures feeding your gross profit stay accurate while you focus on selling.









