Scenario 1
Product business
$100,000 revenue, $60,000 COGS → $40,000 gross profit, 40% gross margin.
Know your gross profit before operating costs eat into your margin.
Results update instantly as you type or drag.
Quick insights
Gross margin
40%
COGS ratio
60%
Quick answer
Gross Profit = Revenue − Cost of Goods Sold (COGS). Gross Margin = Gross Profit ÷ Revenue × 100.
How it works
A quick walkthrough of what this calculator does behind the scenes.
Enter your total revenue for the period.
Enter your cost of goods sold (COGS).
See gross profit and gross margin percentage.
Formula
No black box — here's exactly how the result is computed.
Gross Profit = Revenue − COGS
Gross Margin = Gross Profit ÷ Revenue × 100
COGS Ratio = COGS ÷ Revenue × 100Examples
See how the numbers play out for typical use cases.
Scenario 1
$100,000 revenue, $60,000 COGS → $40,000 gross profit, 40% gross margin.
Scenario 2
$200,000 revenue, $20,000 COGS → $180,000 gross profit, 90% gross margin (software has high margins).
Related
Other calculators that work well alongside this one.
Business
Calculate gross profit, profit margin, and markup from your revenue and costs.
Open calculatorBusiness
Calculate net profit and net profit margin from revenue, cost of goods sold, and operating expenses.
Open calculatorBusiness
Calculate the selling price, markup percentage, or profit from cost and desired margin.
Open calculator