Gross Profit & Margin
Calculate gross profit and gross profit margin from your revenue and cost of goods sold. Enter total revenue and cost to see how much you keep and what percentage of each sale is profit.
- Gross Profit Margin
- 40%
- Markup on Cost
- 66.67%
Gross profit is revenue minus the cost of goods sold (COGS). Gross profit margin expresses that profit as a percentage of revenue. This calculator does not include operating expenses, taxes, or interest.
What the Gross Profit Calculator Does
This Gross Profit Calculator turns two numbers โ your revenue and your cost of goods sold (COGS) โ into your gross profit in currency and your gross margin as a percentage. Enter the price you charged and what the item or service cost you to deliver, and the tool returns both figures instantly.
It's built for small business owners, freelancers, e-commerce sellers, retailers, and students who need a quick read on whether a product or order makes money before overhead. It is not a net profit tool: it stops at the production line and ignores rent, salaries, marketing, interest, and taxes.
How It Works: The Gross Profit and Gross Margin Formulas
The math behind gross profit is simple subtraction, and gross margin is a ratio of that result to revenue:
The margin is then multiplied by 100 to express it as a percentage. Gross margin always sits between 0% and 100% for a profitable sale โ a negative result means you sold below cost.
- Gross profit = Revenue โ Cost of goods sold (COGS)
- Gross margin (%) = (Gross profit รท Revenue) ร 100
- COGS = direct costs only (materials, manufacturing, the wholesale price you paid, direct labor)
Worked Example With Real Numbers
Say you run an online shop and sell a backpack for $80. You bought it from a supplier for $45, and shipping plus packaging to fulfill the order cost another $7. Your COGS is $45 + $7 = $52.
Gross profit = $80 โ $52 = $28. Gross margin = ($28 รท $80) ร 100 = 35%. So 35 cents of every dollar of sales is left to cover everything else โ your rent, ads, and salary all come out of that $28, not the full $80.
If you sold 200 of these in a month, total gross profit would be 200 ร $28 = $5,600, while the margin percentage stays at 35%.
Gross Margin vs. Markup: A Common Mistake
Margin and markup use the same dollars but different denominators, and confusing them leads to underpricing. Margin divides profit by the selling price; markup divides profit by the cost.
In the backpack example, the margin is 35% ($28 รท $80), but the markup is $28 รท $52 = 53.8%. The markup number is always higher than the margin for the same sale, so if a wholesaler quotes you a "50% markup," don't assume it means a 50% margin.
Practical Tips and Factors That Affect Your Result
Accurate COGS is everything. The most frequent error is leaving direct costs out โ payment-processor fees, freight, returns, or per-unit labor โ which inflates your apparent margin. Be consistent about what you include so you can compare products fairly over time.
- Include only direct, per-sale costs in COGS; keep fixed overhead (rent, software, salaries) out โ that belongs to net profit.
- Rising supplier prices or shipping rates shrink margin even when your selling price stays flat.
- Discounts and coupons reduce revenue, so a 20% off code cuts your margin faster than it cuts your price.
- Compare gross margins within the same industry โ software margins differ sharply from grocery margins, so there's no single "good" number.
- Use gross margin to set a price floor: if margin can't cover your overhead per unit, the product loses money overall.
Frequently asked questions
What is gross profit?
Gross profit is revenue minus the cost of goods sold (COGS). It shows how much money is left to cover operating expenses, taxes, and net profit before any of those are deducted.
What is gross profit margin?
Gross profit margin is gross profit divided by revenue, shown as a percentage. A 40% margin means you keep 40 cents of gross profit for every unit of currency in sales.
How is margin different from markup?
Margin is profit as a percentage of revenue (selling price), while markup is profit as a percentage of cost. The same profit produces a higher markup figure than margin.
Does this include operating expenses or taxes?
No. Gross profit only subtracts the direct cost of goods sold. Rent, salaries, marketing, interest, and taxes are not included and would reduce your net profit further.