Relyance Solutions
-Calc
Enter any two of cost, margin, revenue, or profit — the other two calculate instantly. No sign-up, no ads, no guessing which formula to use.
0
Enter any two values
Relyance Solutions
Interest Calculator
Enter a principal, rate, and term to see the interest owed and the total repayment — simple or compound, with the effective annual rate (APY) shown alongside the APR you entered.
Calculated
Calculated
Relyance Solutions
Measurements
Convert length, weight, volume, temperature, area, speed, data storage, and time between the units your team actually uses.
Calculated
Custom
Your conversions
Save a conversion for a ratio you use often — like how many liters are in a pail — and it will compute instantly every time.
Start here
How to calculate profit margin
Profit margin measures how much of each sale you actually keep. Take what you sold something for, subtract what it cost you, and divide the result by what you sold it for. That’s it — no spreadsheet required.
- What it cost you$30Cost of goods sold
- What you sold it for$50Revenue
- What you kept$20$50 − $30 = profit
- As a share of the sale40%$20 ÷ $50 = margin
Switch to the Calculator tab, change any one of those numbers, and watch the other two update in real time.
The maths
Gross margin formula
Any two of cost, margin, revenue, and profit determine the other two. Here are all five equations the Calculator tab is running:
Every equation in the calculator
profit = revenue − cost margin = 100 × profit / revenue revenue = cost / (1 − margin / 100) revenue = 100 × profit / margin cost = revenue − margin × revenue / 100
Pick whichever pair you already know. If you know cost and margin, the third formula gives you revenue. If you know profit and margin, the fourth gives you revenue instead — cost then falls out of the first equation.
Vocabulary
A note on terminology
“Margin,” “gross margin,” and “profit margin” get used interchangeably in most conversations, and on this page. They all mean the same calculation: profit divided by revenue. If someone specifically means net margin — profit after every expense, not just the cost of the product — they’ll usually say “net.”
“Cost” here means cost of goods sold (COGS): what it actually took to produce or acquire whatever you sold. It doesn’t include your rent, your salary, or your ad spend — those come out of gross profit later, which is exactly why gross margin and net margin are different numbers.
Don't mix these up
Margin vs. markup
Margin and markup answer different questions with the same profit number. Same $20 profit, two different percentages, depending on which number you divide by.
| Margin | Markup | |
|---|---|---|
| Question it answers | What share of the sale price is profit? | How much did you add on top of cost? |
| Divide profit by | Revenue ($50) | Cost ($30) |
| Same $20 profit | 40% | 66.7% |
Converting between the two
markup % = margin % / (100 − margin %) × 100 margin % = markup % / (100 + markup %) × 100
Markup is always the bigger number for a profitable sale, because it’s dividing by cost instead of revenue, and cost is smaller. Mixing the two up is the single most common pricing mistake there is.
Questions