Skip to main contentSkip to secondary navigation
HomeecommerceCOGS Calculator

Cost of Goods Sold (COGS) Calculator

Calculate your Cost of Goods Sold using the inventory accounting formula. Includes gross profit margin and COGS as a percentage of revenue.

✓ Formula verified: January 2026
🛒

COGS Calculator

Results update instantly as you type

Enter Values

$
$
$
$
Cost of Goods Sold (COGS)
$125,000.00
↑ Neutral
Goods Available for Sale$170,000.00
Gross Profit$125,000.00
Gross Margin %50.00%
COGS as % of Revenue50.00%
http://127.0.0.1:54963/ecommerce/cogs-calculator
COGS Breakdown

Cost of Goods Sold

$125,000.00

Goods Available
$170,000
Gross Profit
$125,000

Gross Margin

50.00%

COGS %

50.00%

The Formula

COGS = Beginning Inventory + Purchases − Ending Inventory

Cost of Goods Sold is calculated using the basic inventory accounting formula, representing the direct cost of the products sold during a period. It is one of the most important numbers on any income statement.

Variable Definitions

Beginning Inventory

Beginning Inventory

The cost value of all inventory on hand at the start of the accounting period. This matches the ending inventory of the prior period.

Purchases

Net Purchases / Production

All costs of new inventory purchased or manufactured during the period, adjusted for returns and discounts.

Ending Inventory

Ending Inventory

The cost value of remaining unsold inventory at the end of the period. Must be physically counted or estimated using a costing method.

How to Use This Calculator

  1. 1

    Enter the value of your beginning inventory (from the start of the period).

  2. 2

    Enter the total cost of inventory purchased or produced during the period.

  3. 3

    Enter the value of unsold inventory remaining at the end of the period.

  4. 4

    Optionally enter total revenue to see gross profit and margin calculations.

  5. 5

    Review COGS as a percentage of revenue — if it is too high, explore supplier alternatives or price increases.

Common Applications

  • Calculating true product cost for inventory accounting and tax reporting at the end of each accounting period
  • Determining gross profit and gross margin by subtracting COGS from revenue to evaluate business profitability
  • Tracking inventory efficiency by monitoring COGS as a percentage of revenue month over month to spot cost trends
  • Comparing COGS across different product lines to identify which products are most profitable to sell

COGS formula — beginning inventory plus purchases minus ending inventory

Understanding the Concept

COGS is a critical income statement line item. It represents the direct cost of the products a business sells. Lower COGS with the same revenue means higher gross profit and margin. COGS only includes costs directly tied to production: raw materials, direct labor, and manufacturing overhead. It does NOT include selling expenses, marketing, or administrative overhead — those are operating expenses. Tracking COGS accurately is essential for understanding true product profitability and pricing strategy. Real-world example: a clothing brand reports beginning inventory of $50,000, makes $120,000 in purchases, and has $45,000 in ending inventory. Their COGS is $125,000. If revenue is $250,000, gross profit is $125,000 (50% margin). If the owner overestimates ending inventory at $55,000, COGS drops to $115,000 and margin inflates to 54% — creating a false picture of profitability that will reverse when the inventory error is discovered. This is why physical inventory counts and accurate costing methods matter so much. For a manufacturer, COGS also includes factory labor and overhead. A furniture maker spending $200 on wood, $50 on hardware, $80 in direct labor, and $30 in factory overhead per table has a COGS of $360 per table.

Frequently Asked Questions

Related Calculators

Reviews

No reviews yet. Be the first to share your experience with Cost of Goods Sold (COGS) Calculator.

Write a Review

Your Rating *

0/1000

0/50

Related Calculators

Related Guides (1)

Medical Disclaimer: The health and fitness calculators on this site are for informational and educational purposes only. They are not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with any questions about your health.

Financial Disclaimer: The finance calculators on this site are for informational purposes only and do not constitute financial advice. Results are estimates based on the inputs provided and may vary. Consult a qualified financial advisor before making investment or financial decisions.

© 2026 TheCalcUniverse. All results are for informational purposes only.

Fast, free, and privacy-first.