Profit Margin Calculator
Calculate gross profit, net profit margin, markup percentage, and revenue needed for a target margin.
Did this tool work for you?
How to use this calculator
Profit Margin % expresses profit as a percentage of revenue. Markup % expresses profit as a percentage of cost.
- 1
Enter the revenue (total selling price or income).
- 2
Enter the cost (cost of goods sold or total expenses).
- 3
The calculator shows your profit margin %, gross profit, and markup %.
Frequently asked questions
What is profit margin?
Profit margin is profit expressed as a percentage of revenue. A 40% margin means 40 cents of every dollar of revenue is profit. It is the most commonly used metric for comparing profitability across products or companies.
What is the difference between margin and markup?
Margin = Profit ÷ Revenue. Markup = Profit ÷ Cost. If you buy a product for $60 and sell for $100, margin = 40% and markup = 66.7%. Margin and markup describe the same profit in different directions.
What is a good profit margin?
It varies by industry. Grocery retail: 1–3%. Software/SaaS: 60–80%. Restaurants: 3–9%. Manufacturing: 5–10%. Consulting: 20–40%. Compare margins within the same industry, not across industries.
How do I set a price to hit a target margin?
Use the formula: Price = Cost ÷ (1 − Target Margin). To achieve a 40% margin on a product costing $60: Price = 60 ÷ 0.60 = $100.
Profit margin and markup explained
Margin vs markup: the common confusion
Margin and markup describe the same dollar profit from two different angles. A product costing $50 and selling for $100 has a profit of $50. Margin: $50 ÷ $100 = 50%. Markup: $50 ÷ $50 = 100%. A 50% margin is not the same as a 50% markup.
Types of profit margin
Gross margin = (Revenue − COGS) ÷ Revenue. Operating margin = Operating Income ÷ Revenue (deducts operating expenses). Net margin = Net Income ÷ Revenue (deducts all expenses including tax and interest). This calculator computes gross margin — the most fundamental measure.
Using margin to set prices
Price = Cost ÷ (1 − Target Margin %). To price at 30% margin: Price = Cost ÷ 0.70. To price at 50% margin: Price = Cost ÷ 0.50. Pricing for markup is different: Price = Cost × (1 + Markup %). A 50% markup on a $60 item = $90 price, which is a 33% margin.
Learn more from an authoritative source:
InvestopediaFuture Value Calculator
Calculate the future value of a lump sum or regular investment with compound interest.
Present Value Calculator
Calculate the present value of a future lump sum or stream of payments using a discount rate.
Discount Calculator
Calculate the sale price, amount saved, and percentage off for any discount. Works for retail, coupons, and bulk pricing.
Savings Calculator
Calculate how much your savings will grow over time with regular contributions and compound interest.
Investment Calculator
Calculate the future value of an investment with one-time or recurring contributions, and see the effect of different return rates.
Amortization Calculator
Calculate your monthly mortgage or loan payment and see the full amortization schedule — how much goes to principal vs interest each month.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →