Profit Margin and Markup Calculator
Calculate gross profit, profit margin, markup and the selling price required for a target margin.
This is a gross unit calculation. It does not automatically include overhead, payment fees, returns, shipping, tax, labour or other operating expenses unless they are included in unit cost.
How to use this calculator
Enter the complete unit cost, selling price and desired target margin. Margin measures profit as a share of selling price; markup measures profit relative to cost. They are not interchangeable.
Formula
Profit = selling price − cost. Margin = profit ÷ selling price × 100. Markup = profit ÷ cost × 100. Price for target margin = cost ÷ (1 − target margin).
Reference: U.S. Small Business Administration planning and contribution margin guidance
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewQasimACCA, CFA, Senior Financial Analyst
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by selling price, while markup divides profit by cost. The percentages differ even when the monetary profit is the same.
Which costs should I include?
Include every cost you want the gross calculation to cover, such as product cost, inbound shipping, packaging or transaction fees.
Is gross margin the same as net profit margin?
No. Net margin also accounts for operating expenses, financing, taxes and other business-level costs.
What is a good profit margin?
It depends on the industry. Grocery retailers often work on thin margins, while software and consulting firms can have much higher margins. Compare with businesses similar to yours.
How do I price a product for a target margin?
Divide cost by (1 − target margin). For a 40% margin on a cost of 60, price = 60 ÷ 0.6 = 100.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is a margin of 0.5 ÷ 1.5 ≈ 33.3%. To go the other way, markup = margin ÷ (1 − margin).
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Franklin, M., Graybeal, P., & Cooper, D. (2019). Principles of accounting, volume 1: Financial accounting. OpenStax. View source
- IFRS Foundation. (2024). IAS 2: Inventories. View source
- Dahlquist, J. R., & Knight, R. (2022). Principles of finance. OpenStax. View source
- Franklin, M., Graybeal, P., & Cooper, D. (2019). Principles of accounting, volume 2: Managerial accounting. OpenStax. View source
- Datar, S. M., & Rajan, M. V. (2021). Horngren’s cost accounting: A managerial emphasis (17th ed.). Pearson. View source