COGS & Gross Margin Calculator
Turn price and product cost into the numbers that matter. Enter your selling price and cost of goods sold to get gross profit, gross margin and markup per unit.
Per-unit economics
Results
- Gross profit per unit
- $32.00
- Gross margin
- 64.0%
- Markup
- 177.8%
Profit as a share of price.
Profit as a share of cost.
Calculations run live in your browser. Nothing is stored.
What this measures
COGS (cost of goods sold) is what it costs you to produce or acquire a unit — materials, manufacturing and inbound freight. Gross margin is the share of the selling price left after COGS.
Margin and markup are often confused. Margin is profit ÷ price; markup is profit ÷ cost. The same dollar of profit always shows a higher markup than margin.
The formula
Gross profit = Price − COGS. Gross margin % = Gross profit ÷ Price × 100. Markup % = Gross profit ÷ COGS × 100.
Worked example
Sell at $50 with $18 COGS: gross profit is $32. Margin = 32 ÷ 50 = 64%. Markup = 32 ÷ 18 = 178%.
Frequently asked questions
Stop calculating profit by hand.
Keelvia connects your store and ad accounts and shows your true net profit automatically — with an AI copilot for what to do next.
Free plan · no credit card required
