How to Calculate Profit Margin
This margin calculator helps you find an item's revenue, profit, cost, or profit margin percentage — from any two of the other values. In general, your profit margin determines how healthy your company is: low margins mean you're dancing on thin ice, while high margins leave room for errors and setbacks.
Here is the step-by-step process using a simple example:
- Find your COGS (cost of goods sold): e.g., $30
- Find your revenue (selling price): e.g., $50
- Calculate gross profit: $50 − $30 = $20
- Divide gross profit by revenue: $20 ÷ $50 = 0.40
- Express as a percentage: 0.40 × 100 = 40%
Gross Margin Formula
The formula for gross margin percentage:
Since profit = revenue − costs, an alternative form is:
To find revenue when you know profit and margin:
To find cost when you know revenue and margin:
A Note on Terminology
Terms like margin, profit margin, gross margin, and gross profit margin are often used interchangeably. In this calculator we treat them the same way — the key figure is the ratio of profit to revenue, regardless of whether "costs" include only COGS or also marketing and transport. Most people arrive here looking for a profit margin calculator, gross margin calculator, or gross profit calculator (GP calculator), and this tool covers all of them.
Margin vs. Markup
This is a very common source of confusion:
| Concept | Formula | Based on | Example (cost $30, revenue $50) |
|---|---|---|---|
| Margin | profit ÷ revenue × 100 | Revenue | $20 ÷ $50 × 100 = 40% |
| Markup | profit ÷ cost × 100 | Cost | $20 ÷ $30 × 100 = 66.7% |
Notice: the same transaction gives a 40% margin but a 66.7% markup. Margin is always lower than markup for the same profit. Mixing them up is one of the most common pricing mistakes in business.
Real-World Examples with Multiple Currencies
| Scenario | Cost | Revenue | Profit | Margin |
|---|---|---|---|---|
| US retail product (USD) | $30 | $50 | $20 | 40% |
| European software license (EUR) | €5 | €99 | €94 | 94.9% |
| UK consulting hour (GBP) | £40 | £120 | £80 | 66.7% |
| Brazilian e-commerce item (BRL) | R$50 | R$80 | R$30 | 37.5% |
| Japanese electronics (JPY) | ¥5,000 | ¥8,000 | ¥3,000 | 37.5% |
| Indian handcraft (INR) | ₹200 | ₹500 | ₹300 | 60% |
US vs. Metric — Does It Apply to Margin?
Profit margin is a pure financial ratio — it doesn't depend on units of measurement. However, when you're selling physical goods, the measurement system can affect your cost of goods sold:
- US / Imperial system: pricing might be per pound (lb), per foot (ft), per fluid ounce (fl oz) — e.g., fabric sold per yard. To calculate margin, convert your per-unit cost and selling price consistently.
- Metric system: pricing per kilogram (kg), per meter (m), per liter (L) — e.g., fabric sold per meter. The margin formula remains identical; only the unit labels differ.
Example: A fabric seller buys cloth at $2.50/yard (US) or $2.73/meter (Metric, since 1 m ≈ 1.09 yards) and sells it for $4.00/yard or $4.37/meter. The margin is ($4.00 − $2.50) ÷ $4.00 = 37.5% in both cases.
FAQs
What is a good profit margin?
It depends heavily on the industry. Grocery stores often run on 2–5% margins, while software companies can achieve 60–80%+. As a general benchmark: <10% is low, 10–30% is average, 30%+ is healthy.
Is profit margin the same as ROI?
No. Profit margin compares profit to revenue. ROI (Return on Investment) compares profit to investment/cost. ROI is closer to markup than to margin.
Can profit margin be negative?
Yes — a negative margin means you're selling below cost (a loss). This can happen during promotions, market entry, or economic downturns. The calculator will flag this clearly.
What's the difference between gross margin and net margin?
Gross margin only subtracts the cost of goods sold (COGS). Net margin subtracts all expenses including operating costs, taxes, and interest. This calculator computes gross margin.
How do I set prices to achieve a target margin?
Use the "Cost + Margin % → Revenue" mode in this calculator. Enter your cost and desired margin, and the tool will tell you the exact selling price you need.