For informational purposes only. Not financial, investment, or tax advice. Results are estimates based on the inputs provided. Consult a qualified financial professional before making financial decisions.
Calculator tool
How this calculator works
Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.
What the Margin Calculator Measures
The margin calculator measures gross profit as a share of revenue. It starts with two numbers: the cost of delivering a product or service and the revenue you receive from selling it.
A margin result answers this question: after covering the direct cost, what percentage of the selling price remains as gross profit?
This is different from markup. Markup compares profit with cost, while margin compares profit with revenue. Both are useful, but they are not interchangeable.
Margin Formula
Use short variables so the formula stays readable on mobile:
- = gross profit margin
- = revenue or selling price
- = cost
- = gross profit
The calculator also computes gross profit:
And markup:
Worked Example
Suppose a product costs 60 USD and sells for 100 USD. In that case, and .
First calculate gross profit:
Then calculate margin:
Then calculate markup:
So the same transaction has 40 USD gross profit, 40% gross margin, and about 66.67% markup.
When to Use This Calculator
Use this calculator when you need to check pricing, quote work, compare products, or review whether a sale is profitable before overhead.
It is most useful for:
- Checking the gross margin on a product or service
- Comparing margin and markup before setting prices
- Testing how a supplier cost increase affects profit
- Explaining why a high markup does not always mean a high margin
How to Read the Result
Read the margin as the share of each revenue unit that remains after direct cost. A 40% margin means 40 cents of every 1 USD remains as gross profit before rent, salaries, ads, software, shipping overhead, and taxes.
If the calculator shows N/A, the revenue is zero, so a margin percentage cannot be defined. If the markup shows N/A, the cost is zero, so markup cannot be calculated in a meaningful way.
Limitations and What to Verify
This calculator estimates gross margin, not net profit. It does not automatically include operating expenses, tax, payment processing fees, refunds, inventory loss, or financing costs.
Before relying on the result for a real pricing decision, verify:
- Whether the cost includes all direct costs, not only materials
- Whether revenue and cost are both before tax or both after tax
- Whether shipping, platform fees, or commissions should be included
- Whether the result is gross margin or net margin
Use the result as a pricing and planning estimate, not as a replacement for accounting records.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by revenue, while markup divides profit by cost.
Where is revenue, is cost, and :
Example: if cost is 60 and selling price is 100, profit is . Margin is , while markup is .
What margin should I target for a small business product?
There is no universal target, but the margin must leave room for expenses after direct cost.
Common planning ranges:
- Retail products: often 20% to 50% gross margin
- Services: often 30% to 70%, depending on labor and overhead
- Low-margin reselling: sometimes 5% to 20%
For example, if monthly overhead is 2,000 USD and average gross profit per sale is 20 USD, you need sales just to cover overhead.
Should VAT or sales tax be included in the margin calculation?
Usually, use numbers consistently before tax when the tax is collected from the customer and passed to the tax authority.
For example, if the customer pays 116 including 16% VAT, the pre-tax selling price is . If cost before recoverable VAT is 70, the gross margin is:
Mixing tax-inclusive revenue with tax-exclusive cost can make the margin look better or worse than it really is.
Why does the calculator show N/A for margin or markup?
A percentage needs a valid denominator.
- Margin is undefined when revenue is 0, because the formula divides by revenue.
- Markup is undefined when cost is 0, because the formula divides by cost.
- A negative profit is still valid: cost 120 and revenue 100 gives profit and margin .
Use the warning as a signal to check whether the entered cost or revenue is realistic.