KnowYourNutKnowYourNut
Back to Calculators
Sign in to save your calculations and pre-fill from your business profile.

Cost of Goods Sold Calculator

Calculate your total COGS, gross profit, and gross margin. Compare your cost structure to industry benchmarks.

Inventory & Materials

Labor & Overhead

Per-Unit Analysis (optional)

What Is Cost of Goods Sold (COGS)?

Cost of goods sold is the total cost of producing or purchasing the products and services your business sells. It covers raw materials, direct labor, manufacturing overhead, and shipping. When you subtract COGS from revenue, you get your gross profit, the money left over to cover rent, marketing, payroll, and everything else it takes to keep the doors open.

COGS is one of the most important numbers on your income statement. If you do not know it, you cannot accurately price your products, measure profitability, or file your taxes correctly.

Why COGS Matters for Your Business

Every dollar you spend producing your product is a dollar that does not flow to your bottom line. Tracking COGS helps you:

  • Set prices that actually work. If your COGS per unit is $12 and you sell for $15, your 20% gross margin might not cover operating expenses. Knowing the real number lets you price with confidence.
  • Spot cost creep early. Supplier prices go up. Shipping rates change. Without tracking COGS, these increases eat into margin silently.
  • Compare yourself to competitors. Industry benchmarks tell you whether your cost structure is competitive or whether you are overpaying for materials, labor, or overhead.
  • File taxes accurately. The IRS requires businesses with inventory to report COGS. Underreporting means you pay more tax than necessary. Overreporting creates audit risk.

Product vs. Service COGS

Product-Based Businesses

If you sell physical goods, COGS follows the inventory method:

COGS = Beginning Inventory + Purchases + Direct Labor + Overhead + Freight - Ending Inventory

Your beginning inventory is what you had on the shelf at the start of the period. Add everything you bought or manufactured during the period. Subtract what is still on the shelf at the end. The difference is what you sold.

Service-Based Businesses

Service businesses do not carry inventory, but they still have direct costs. A consulting firm pays for subcontractors. A cleaning company pays for supplies and labor. A design agency pays for software licenses and freelancers.

COGS = Direct Materials + Direct Labor + Subcontractors + Direct Overhead

The key distinction: only include costs directly tied to delivering the service. Your office rent is an operating expense, not COGS. The freelancer you hired for a client project is COGS.

What Counts as COGS (and What Does Not)

Include in COGS:

  • Raw materials and components
  • Direct labor (workers who build, assemble, or deliver)
  • Manufacturing overhead (factory utilities, equipment depreciation)
  • Freight and shipping to your warehouse
  • Packaging materials
  • Subcontractor costs for client work

Do NOT include in COGS:

  • Rent for your office or retail space
  • Marketing and advertising
  • Administrative salaries
  • Insurance
  • Interest on loans
  • Sales commissions (usually classified as selling expense)

How to Reduce Your COGS

  1. Negotiate with suppliers. Volume discounts, longer payment terms, or switching to a lower-cost supplier can cut material costs by 5-15%.
  2. Reduce waste. Track spoilage, defects, and returns. Even a 2% reduction in waste goes straight to your bottom line.
  3. Improve labor efficiency. Better training, clearer processes, and the right tools mean fewer hours per unit produced.
  4. Review shipping. Consolidate shipments, negotiate carrier rates, or switch fulfillment methods.
  5. Watch inventory levels. Excess inventory ties up cash and increases carrying costs. Too little inventory means rush orders at premium prices.

COGS and Your Other Numbers

Your COGS feeds directly into other critical calculations:

  • Gross Margin: (Revenue - COGS) / Revenue. This tells you the percentage of every dollar you keep after direct costs.
  • Break-Even Point: Your fixed costs divided by your contribution margin (which depends on COGS per unit).
  • Pricing Strategy: Your markup percentage is based on COGS. A 50% markup on a $10 COGS item means a $15 selling price.
  • Inventory Turnover: COGS divided by average inventory. Higher turnover means you are selling through stock faster.

Frequently Asked Questions