COGS Calculator

Enter beginning inventory, purchases, and ending inventory to calculate COGS, gross profit, and gross margin instantly.

Inventory & Cost Inputs

$
$
$
$

Cost of Goods Sold (COGS)

Gross Profit

Revenue − COGS

Gross Margin

Gross Profit ÷ Revenue

Summary

Enter beginning inventory, purchases, and ending inventory to calculate COGS, gross profit, and gross margin instantly.

How it works

  1. Enter the value of inventory you had at the start of the period.
  2. Enter the total cost of goods purchased or produced during the period.
  3. Enter the value of inventory remaining at the end of the period.
  4. Optionally enter your total revenue to see gross profit and gross margin.
  5. Results update instantly as you type.

Use cases

  • Calculate COGS for monthly, quarterly, or annual income statements.
  • Determine gross profit for a product line or entire store.
  • Estimate gross margin percentage to benchmark against industry standards.
  • Compare COGS across periods to spot inventory inefficiencies.
  • Prepare financial reports for investors or lenders.
  • Verify accounting entries during an audit.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu