ADVERTISEMENT

Mobile Banner
320×100

Cost of Goods Sold Calculator

Calculate COGS and gross profit margin

COGS Formulas

COGS Formula
Loading formula...
Gross Profit
Loading formula...
Gross Margin
Loading formula...

Understanding Cost of Goods Sold

Cost of Goods Sold (COGS) represents the direct costs of producing goods sold by a company. It includes raw materials, direct labor, and manufacturing overhead directly tied to production. COGS is subtracted from revenue to calculate gross profit.

The basic COGS formula uses inventory accounting: Beginning Inventory + Purchases - Ending Inventory = COGS. If you start with $50,000 inventory, purchase $200,000, and end with $40,000, your COGS is $210,000.

COGS is crucial for determining profitability and pricing. A high COGS relative to revenue indicates tight margins. Different industries have vastly different COGS profiles—software has near-zero COGS while manufacturing has substantial material and labor costs.

What's Included in COGS

📦

Raw Materials

Materials and parts directly used in products sold.

👷

Direct Labor

Wages for workers directly producing goods.

🏭

Manufacturing Overhead

Factory utilities, equipment depreciation, production supplies.

🚚

Freight In

Shipping costs to get inventory to your location.

Gross Margin by Industry

IndustryTypical COGS %Gross MarginNotes
Software/SaaS10-25%75-90%Low marginal cost
Retail60-75%25-40%Product resale
Manufacturing50-70%30-50%Material + labor
Restaurants28-35%65-72%Food cost target
Grocery75-80%20-25%Low margin, high volume

Managing COGS

📉

Negotiate with Suppliers

Volume discounts, payment terms, and competitive bidding reduce material costs.

⚙️

Improve Efficiency

Reduce waste, optimize processes, and minimize rework to lower production costs.

📊

Track by Product

Calculate COGS per product/SKU. Identify and address low-margin items.

📦

Inventory Method Matters

FIFO, LIFO, and weighted average give different COGS. Choose appropriately and be consistent.

Frequently Asked Questions

What's NOT included in COGS?

Exclude: selling expenses, marketing, administrative salaries, rent for non-production space, R&D, and distribution costs (freight out). These are operating expenses, not COGS.

FIFO vs LIFO: which should I use?

FIFO (First In First Out) assumes oldest inventory sold first—better matches physical flow. LIFO (Last In First Out) can reduce taxes during inflation. FIFO is more common and required under IFRS.

How does COGS affect taxes?

COGS is deductible. Higher COGS = lower taxable income. However, artificially inflating COGS is fraud. Use proper accounting methods and be consistent year to year.

What's the difference between COGS and Cost of Sales?

For product companies, they're interchangeable. Service companies use Cost of Sales (or Cost of Revenue) since there's no inventory—it includes direct labor and service delivery costs.

Examples

Retail Store Annual COGS

A boutique starts the year with $50,000 in inventory, purchases $200,000 of new goods, and finishes the year with $75,000 on the shelf.

Result$175,000 COGS

Apply the formula: $50,000 + $200,000 - $75,000 = $175,000. If revenue was $300,000, gross profit is $125,000 and gross margin is 41.7%.

Frequently asked questions

What's the difference between COGS and operating expenses?

COGS covers direct costs of producing goods sold—materials, direct labor, and manufacturing overhead. Operating expenses (OpEx) cover indirect costs like marketing, administrative salaries, rent for office space, and R&D. COGS sits above the gross profit line; OpEx sits below it on the income statement.

How do FIFO, LIFO, and Weighted Average affect COGS?

FIFO (First In First Out) sells oldest inventory first, producing lower COGS and higher profits during inflation. LIFO (Last In First Out) sells newest inventory first, producing higher COGS and lower taxable income when prices rise. Weighted Average smooths the cost per unit across all inventory. IFRS prohibits LIFO; US GAAP permits all three.

How does COGS affect gross profit?

Gross profit equals revenue minus COGS. Every dollar reduction in COGS flows directly to gross profit. For example, cutting COGS from $175,000 to $160,000 on $300,000 revenue raises gross profit from $125,000 to $140,000 and gross margin from 41.7% to 46.7%.

Is COGS tax-deductible?

Yes. COGS is reported on IRS Schedule C (sole proprietors) or Form 1125-A (corporations and partnerships) and reduces taxable income dollar for dollar. The IRS requires consistent inventory accounting methods year to year; changes require Form 3115.

Do service businesses have COGS?

Service businesses without inventory typically report Cost of Services or Cost of Revenue instead. It includes direct labor for service delivery, subcontractor fees, and software/tools tied to producing the service—but excludes back-office salaries and marketing.

What's NOT included in COGS?

Exclude selling expenses, marketing, administrative salaries, office rent, R&D, freight-out (shipping to customers), and depreciation on non-production assets. These belong in operating expenses, not COGS.

How often should I calculate COGS?

Calculate COGS at minimum quarterly for financial statements and annually for tax filing. Many product businesses track COGS monthly to monitor margin trends and catch sourcing problems early. Real-time perpetual inventory systems calculate COGS at each sale.

Sources

Pro Tips

  • Bookmark this calculator for quick access in the future
  • Use the share button to send your results to others
  • Try different scenarios to compare outcomes
  • Check out our related calculators for more insights

Found this calculator helpful? Share it with others:

Embed this calculator