Skip to main content

Cost of Goods Sold (COGS): The Complete Guide for Small Business Owners

· 11 min read
Mike Thrift
Mike Thrift
Marketing Manager

Every dollar your business spends making or acquiring products eats directly into your profit. Yet many small business owners miscalculate their Cost of Goods Sold—or ignore it entirely—and wonder why their margins feel razor-thin despite healthy revenue. Understanding COGS is one of the most powerful levers you have for pricing smarter, paying less in taxes, and actually knowing whether your business is profitable.

What Is Cost of Goods Sold?

2026-03-16-cost-of-goods-sold-cogs-complete-guide-small-business

Cost of Goods Sold (COGS) represents the direct costs of producing or purchasing the goods your business sells during a specific period. It includes raw materials, direct labor, and any other expenses directly tied to production—but not overhead like rent, marketing, or administrative salaries.

COGS appears on your income statement and is subtracted from revenue to calculate gross profit:

Revenue - COGS = Gross Profit

This number tells you how much money you actually have left over to cover operating expenses and generate net profit. If your COGS is too high relative to revenue, no amount of cost-cutting on office supplies will save you.

Why COGS Matters More Than You Think

Pricing Decisions

Your COGS establishes the floor for your pricing. If you don't know exactly what each unit costs to produce or acquire, you're essentially guessing at prices. Businesses that track COGS accurately can set prices that guarantee a healthy margin rather than hoping they're charging enough.

Tax Deductions

COGS is fully deductible on your business tax return. The higher your legitimate COGS, the lower your taxable income. But the IRS has specific rules about what qualifies—miscategorizing expenses can trigger audits or cost you deductions you're entitled to.

Profitability Analysis

Gross profit margin (revenue minus COGS, divided by revenue) is the clearest indicator of whether your core business model works. A 60% gross margin gives you room to invest in growth. A 10% gross margin means you're one bad quarter away from trouble.

Investor and Lender Confidence

Banks and investors look at COGS trends to evaluate your business. Rising COGS with flat revenue signals trouble. Decreasing COGS with stable revenue shows operational improvement. Having clean, accurate COGS data makes you a more credible borrower or investment candidate.

The COGS Formula

The standard formula for calculating COGS is straightforward:

Beginning Inventory + Purchases During the Period - Ending Inventory = COGS

Here's what each component means:

  • Beginning Inventory: The value of all inventory on hand at the start of the accounting period. This should match your ending inventory from the previous period.
  • Purchases: All costs of acquiring or producing new inventory during the period, including raw materials, shipping to your warehouse, and direct labor.
  • Ending Inventory: The value of unsold inventory remaining at the end of the period.

A Real-World Example

Let's say you run a small candle-making business:

  • Beginning inventory (January 1): $5,000 in wax, wicks, jars, and finished candles
  • Purchases during Q1: $12,000 in raw materials plus $3,000 in direct production labor = $15,000
  • Ending inventory (March 31): $4,500 in remaining materials and unsold candles

COGS = $5,000 + $15,000 - $4,500 = $15,500

If your Q1 revenue was $30,000, your gross profit is $14,500 and your gross margin is about 48%.

What to Include in COGS

Getting this right is critical. Include only direct costs—expenses that wouldn't exist if you didn't produce the product.

For Product-Based Businesses

  • Raw materials and components used in manufacturing
  • Direct labor (wages for workers who physically make the product)
  • Shipping and freight to receive inventory or raw materials
  • Packaging materials that are part of the finished product
  • Factory overhead directly tied to production (equipment depreciation, factory utilities)
  • Subcontractor costs for outsourced manufacturing

For Retail and E-commerce Businesses

  • Wholesale purchase price of goods bought for resale
  • Inbound freight and shipping costs to receive inventory
  • Import duties and customs fees
  • Packaging included with the product

For Hybrid Service-Product Businesses

If you're a mechanic who sells parts, a landscaper who installs plants, or a tattoo artist who uses ink and supplies, you have COGS for the physical goods component. The labor you charge for installing or applying those goods is typically reported as operating revenue, not COGS.

What Does NOT Belong in COGS

Mixing in indirect costs inflates your COGS and makes your financial picture inaccurate. Keep these expenses separate:

  • Rent for office or retail space (unless it's a dedicated production facility)
  • Marketing and advertising costs
  • Administrative salaries (your bookkeeper, office manager, CEO salary)
  • Office supplies and general equipment
  • Sales commissions
  • Utilities for non-production spaces
  • Insurance (general business liability)
  • Professional fees (legal, accounting)

These are operating expenses and belong below the gross profit line on your income statement.

Inventory Valuation Methods: FIFO, LIFO, and Weighted Average

The prices you pay for inventory change over time. When you sell a unit, which cost do you assign to it? Your answer affects your COGS, your taxes, and your reported profit.

FIFO (First-In, First-Out)

FIFO assumes you sell your oldest inventory first. This is the most common method and often the most intuitive—it matches how most businesses actually move product.

Best for: Perishable goods, businesses in stable or deflationary price environments, and businesses that want their balance sheet to reflect current inventory values.

Example: You buy 100 widgets at $5 each in January and 100 more at $7 each in March. You sell 120 widgets in Q1. Under FIFO, your COGS is (100 x $5) + (20 x $7) = $640.

LIFO (Last-In, First-Out)

LIFO assumes you sell your newest inventory first. This results in higher COGS when prices are rising (because you're "selling" the more expensive units first), which lowers taxable income.

Best for: Businesses in inflationary environments that want to minimize tax liability. Note that LIFO is allowed under U.S. GAAP but prohibited under IFRS (international accounting standards).

Example: Using the same numbers above, LIFO COGS is (100 x $7) + (20 x $5) = $800. That's $160 more in COGS—and $160 less in taxable income.

Weighted Average Cost

This method calculates the average cost per unit across all inventory purchases, then applies that average to units sold.

Best for: Businesses with large volumes of similar or identical products where tracking individual costs isn't practical.

Example: Total inventory cost is (100 x $5) + (100 x $7) = $1,200 for 200 units. Average cost = $6 per unit. Selling 120 units gives COGS of 120 x $6 = $720.

Which Method Should You Choose?

Choose a method and stick with it consistently. The IRS requires consistency in accounting methods—you can't switch back and forth to cherry-pick favorable tax outcomes. If you want to change methods, you need to file Form 3115 (Application for Change in Accounting Method).

For most small businesses, FIFO is the simplest choice and provides the most accurate picture of current inventory value. If minimizing taxes is a priority and you deal with rising costs, discuss LIFO with your accountant.

COGS for Service Businesses: Do You Have One?

If your business provides purely intangible services—consulting, software development, marketing—you typically don't report COGS. Your direct costs are categorized differently, often as "cost of services" or simply operating expenses.

However, the IRS draws a clear line: COGS only applies when services produce a physical, sellable product. A toy painter's labor counts as COGS because the painted toys are sold. A consultant's labor does not, because no physical product results from the work.

If you're a service provider who also sells physical goods, track the goods portion as COGS and the service portion as operating expenses. This keeps your financials clean and IRS-compliant.

Five Common COGS Mistakes to Avoid

1. Lumping Everything Into COGS

The most frequent error: treating all business expenses as COGS. Rent, marketing, and administrative salaries are operating expenses, not production costs. Stuffing them into COGS inflates your cost figure and distorts your gross margin, making it impossible to evaluate whether your products are actually profitable.

2. Forgetting Hidden Direct Costs

On the flip side, many owners only count the purchase price of products and forget about shipping, packaging, customs duties, and warehouse labor. These are legitimate COGS components. Excluding them understates your true production costs and overestimates your margins.

3. Sloppy Inventory Tracking

Because COGS depends on beginning and ending inventory values, inaccurate counts produce inaccurate COGS. Counting inventory on napkins—or not counting at all—is a recipe for unreliable financials. Implement regular physical counts (monthly or quarterly) and use inventory management software when possible.

4. Using Outdated Cost Data

Raw material and supplier prices change. If you calculated your COGS using last year's costs, your financials don't reflect reality. Review and update your cost inputs regularly, especially in industries where material costs fluctuate.

5. Inconsistent Valuation Methods

Switching between FIFO and LIFO without proper authorization from the IRS creates accounting chaos and potential compliance problems. Pick a method, document it, and apply it consistently across all periods.

How to Reduce Your COGS

Lowering COGS directly increases gross profit—often more effectively than trying to boost revenue. Here are practical strategies:

Negotiate with Suppliers

Don't accept the first price. Ask for volume discounts, early payment discounts, or longer payment terms. Get quotes from multiple suppliers regularly. Even a 5% reduction in material costs goes straight to your bottom line.

Reduce Waste and Spoilage

Track waste as a percentage of materials purchased. In food service, manufacturing, and retail, waste can silently devour margins. Implement inventory rotation (sell oldest stock first), improve storage conditions, and train employees on proper handling.

Optimize Production Processes

Look for bottlenecks, redundant steps, or labor-intensive tasks that could be streamlined or automated. Small efficiency gains compound over time. Batch similar production runs together to reduce setup and changeover costs.

Renegotiate Shipping and Freight

Shipping is often one of the largest hidden components of COGS. Consolidate shipments, negotiate carrier contracts, and compare rates regularly. Consider whether changing suppliers to a closer location reduces freight enough to offset any price difference.

Review Your Product Mix

Not all products carry the same margin. Analyze COGS by product line to identify which items contribute the most to gross profit. Consider discontinuing low-margin products or finding ways to reduce their specific costs.

Tracking COGS: Manual vs. Software

Manual Tracking

For very small businesses with limited SKUs, a spreadsheet can work. Track beginning inventory, purchases, and ending inventory for each period. The downside: manual tracking is error-prone and time-consuming as you scale.

Accounting Software

Tools like QuickBooks, Xero, and FreshBooks can calculate COGS automatically if you set up your inventory and chart of accounts correctly. They track purchases, sync with inventory counts, and generate income statements with COGS already calculated.

Plain-Text Accounting

For business owners who want full control and transparency, plain-text accounting tools like Beancount let you define your COGS accounts, track inventory movements with double-entry precision, and maintain a complete, version-controlled history of every transaction. There's no black box—you can see exactly how every cost flows from purchase to COGS.

COGS on Your Tax Return

On your business tax return, COGS is reported in Part III of Schedule C (for sole proprietors) or on the corresponding section of your partnership, S-corp, or C-corp return. The IRS requires you to report:

  • Inventory at the beginning of the year
  • Purchases less cost of items withdrawn for personal use
  • Cost of labor (direct labor only)
  • Materials and supplies
  • Other costs
  • Inventory at the end of the year

If you claim COGS, you generally need to maintain inventory records. The IRS may allow small businesses (those meeting the gross receipts test of $29 million or less in average annual gross receipts for 2024) to use the cash method of accounting and treat inventory as non-incidental materials and supplies, simplifying the process significantly.

Keep Your Finances Organized from Day One

Understanding COGS is just one piece of maintaining a clear financial picture for your business. Accurate tracking of direct costs, inventory, and margins requires a system you can trust. Beancount.io provides plain-text accounting that gives you complete transparency over your financial data—every transaction is human-readable, version-controlled, and ready for analysis. Get started for free and take control of your numbers with a system that grows with your business.