COGS Calculator

Calculate cost of goods sold from inventory values. Add revenue to see gross profit and gross margin alongside COGS.

Enter Your Data
$

Inventory value at start of period

$

Inventory bought during period

$

Inventory value at end of period

$

Total sales revenue (for margin calculation)

Enter inventory values to calculate cost of goods sold

Industry Benchmarks: COGS
These show COGS as a percentage of revenue. Lower COGS% means higher gross margin. Distribution typically runs 70-85% COGS, leaving 15-30% gross margin.
IndustryLowAverageHigh
Industrial Distribution70%78%85%
Building Materials65%70%75%
Food Distribution75%80%85%
Manufacturing50%60%70%
Wholesale Trade (Average)72%75%78%
Electronics Distribution75%82%88%

How to Use the COGS Calculator

Step-by-Step Instructions
  1. Enter beginning inventory value for the period
  2. Enter total purchases made during the period
  3. Enter ending inventory value
  4. Optionally enter revenue to calculate gross margin
Formulas Used

Cost of Goods Sold

COGS = Beginning Inventory + Purchases - Ending Inventory

The direct cost of inventory sold during the period.

COGS Percentage

COGS % = (COGS / Revenue) × 100

What percentage of revenue goes to direct product costs.

Gross Profit

Gross Profit = Revenue - COGS

Revenue remaining after direct product costs.

Gross Margin

Gross Margin = ((Revenue - COGS) / Revenue) × 100

Gross profit as a percentage of revenue.

Frequently Asked Questions: COGS Calculator

Related Resources

Pryse pricing analysis dashboard

Want to analyze your entire product catalog?

Pryse automatically identifies margin leakage across thousands of SKUs. Upload your data and find hidden profit in 24 hours.

One-time $1,499 diagnostic. No subscription required.