Profit Margin Calculator
Three modes: calculate margin from revenue and cost, find the selling price for a target margin, or compute price from cost plus a markup percentage. Works for products, services, and projects.
What do you want to calculate?
- Selling price
- $0.00
- Profit (price − cost)
- $0.00
- Gross margin (% of price)
- —
- Markup (% of cost)
- —
Margin = profit ÷ selling price. Markup = profit ÷ cost. Same dollar of profit, two different denominators — a 50% markup is a ~33% margin.
How this is calculated
Margin and markup are the two ways to describe the same dollar of profit. Margin divides profit by selling price; markup divides profit by cost. They are always different percentages.
1.Profit
revenue − cost
Negative when cost exceeds revenue (a loss).
2.Margin %
( profit ÷ revenue ) × 100
Not calculable when revenue = 0 — the calculator shows an em-dash in that case.
3.Markup %
( profit ÷ cost ) × 100
Not calculable when cost = 0 — em-dash.
4.Target margin → price
cost ÷ ( 1 − target margin / 100 )
Target margin must be less than 100% — at 100% the formula divides by zero, meaning infinite price.
5.Cost + markup → price
cost × ( 1 + markup / 100 )
A 50% markup is a 33% margin. A 100% markup is a 50% margin. Same profit, different denominator.
Margin vs markup — the difference that confuses every founder
If you take one thing from this calculator: margin and markup describe the same dollar of profit from different angles. Margin uses the selling price as the denominator; markup uses the cost. They are always different numbers, and conflating them is the #1 reason small businesses underprice.
Example: you buy a product for $40 and sell it for $100. Profit is $60. The margin is 60% ($60 ÷ $100). The markup is 150% ($60 ÷ $40). Same product, same profit, two different percentages. If a supplier quotes you “a 50% margin” on their wholesale price, you need to charge 2× the wholesale price. If they quote “a 50% markup,” you only charge 1.5×. The difference is real money.
Three pricing scenarios this calculator handles
- You know revenue and cost — what's my margin? Use this after a sale to understand profitability. Useful for reviewing past quarters or for analyzing job profitability after the fact.
- You know your cost and want a target margin — what should I charge? Use this when pricing a new product or service. Set the margin you need to be sustainable, and let the calculator tell you the minimum selling price.
- You know your cost and the markup you apply — what selling price? Use this if your industry talks in markup (retail, restaurants, construction often do). Enter cost and your markup percentage; get the selling price and the equivalent margin.
What good margins look like (by industry)
Benchmarks vary widely. Some realistic gross margin ranges for small businesses in 2026:
- SaaS / digital products: 70–90% gross margin (low cost to deliver)
- Consulting / professional services: 40–70% gross margin
- General contracting (residential): 25–40% gross margin
- Retail (specialty): 30–50% gross margin
- Food & beverage: 5–15% net margin (gross is much higher; labor and rent eat most of it)
- E-commerce physical goods: 30–50% gross margin (after COGS and fulfillment)
These are gross margins (revenue minus direct cost). Net margin — what you actually keep after overhead, salaries, rent, taxes, and reinvestment — is typically 30-50% of gross margin.
Why margin alone is not enough
A 60% gross margin sounds great until you realize that on $10,000 of monthly revenue, it's $6,000 of gross profit — which still has to cover rent, software subscriptions, your salary, and taxes. Margin is a ratio; gross profit dollars is the cash that pays the bills. Track both.
For ongoing month-by-month visibility, use the Profit & Loss Statement Templates. They include formula-enabled Excel sheets for monthly and annual P&Ls — revenue, COGS, gross profit, operating expenses, net income — all calculated automatically as you fill in line items.
Track margins month over month
Profit & Loss Statement Templates
Professional P&L with Current Period, Prior Period, YTD, and % Change columns — complete with balance sheet and AR tracker
Related resources
- How to read your profit and loss statement
- Free invoice calculator
- Small business tax prep checklist
- All financial templates
Profit margin FAQs
What is the difference between margin and markup?
What is a "good" profit margin for a small business?
How do I price for a target margin?
Should I use gross or net margin?
My margin looks high but I'm broke. What's wrong?
Related searches
Want more small business tools like this?
Join the PrintReadyForms email list for new calculators, template guides, and practical paperwork tips. Optional and unsubscribe anytime — we never imply a free downloadable template.
By subscribing you agree to receive occasional emails. See our privacy policy for details.