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

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu