COGS Calculator

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

Use the COGS Calculator

Inventory & Cost Inputs

$
$
$
$

Cost of Goods Sold (COGS)

—

Gross Profit

—

Revenue − COGS

Gross Margin

—

Gross Profit ÷ Revenue

Summary

The COGS Calculator computes your Cost of Goods Sold using the standard accounting formula: Beginning Inventory + Purchases During Period − Ending Inventory. It then derives gross profit and gross margin percentage from your revenue figure, giving you a clear picture of product-level profitability in seconds.

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-05-29 · Reviewed by Nham Vu