Profit Margin Calculator
Calculate profit, profit margin, markup, selling price from margin, and cost price from margin.
Required for direct calculation and solving for selling price.
Required for direct calculation and solving for cost price.
Required when solving for selling price or cost price.
Status: initial
Results
Awaiting calculation
Introduction
A profit margin calculator helps sellers, freelancers, and businesses compare cost, selling price, profit, margin, and markup.
What is profit margin?
Profit margin shows what percentage of selling price remains as profit after cost is subtracted.
Profit margin formula
Profit margin is profit divided by selling price, multiplied by 100. Markup uses profit divided by cost price, so margin and markup are not the same.
Variables explained
The cost to buy, make, or deliver a product or service.
The price charged to the customer.
Selling price minus cost price.
Profit as a percentage of selling price.
Profit as a percentage of cost price.
The target margin used to solve for price or cost.
Formula guide
Profit
Profit = Selling Price - Cost Price
- Selling price is customer price.
- Cost price is the cost to provide the item.
Profit is the amount left before any other costs not entered here.
Profit margin
Profit Margin = Profit / Selling Price x 100
- Profit margin uses selling price as the denominator.
Margin shows profit as a share of revenue.
Markup
Markup = Profit / Cost Price x 100
- Markup uses cost price as the denominator.
Markup shows how much the price is increased above cost.
Selling price from margin
Selling Price = Cost Price / (1 - Margin / 100)
- Margin must be below 100%.
Use this when you know cost and desired margin.
Cost price from margin
Cost Price = Selling Price x (1 - Margin / 100)
- Selling price must be greater than 0.
Use this when you know selling price and desired margin.
Worked examples
Retail example
- Cost price is 60.
- Selling price is 100.
- Profit is 40.
- Profit margin is 40% and markup is 66.67%.
E-commerce example
- Include product cost, packaging, platform fees, and shipping when estimating cost.
- Use selling price as the revenue value.
- Compare margin before and after marketplace fees.
- Margin can look higher if costs are omitted.
Service business example
- Cost can include labor, tools, subcontractors, and materials.
- Selling price is the client invoice amount.
- Margin shows how much revenue remains after direct cost.
- Overhead may need separate analysis.
Freelancer pricing example
- Estimate project cost from time and expenses.
- Choose a target margin.
- Solve for selling price.
- Check whether the result fits the market and your workload.
Common margin mistakes
Confusing margin and markup
A 40% margin is not the same as a 40% markup because they use different denominators.
Leaving out fees
Payment fees, marketplace fees, shipping, packaging, labor, and returns can reduce margin.
Using revenue as profit
Profit is revenue minus cost, not the full selling price.
Targeting impossible margins
Selling-price calculations require margin below 100%.
Ignoring overhead
Gross margin may not include rent, software, taxes, salaries, or other overhead.
FAQs
What is profit margin?
What is markup?
Are margin and markup the same?
How do I calculate profit?
How do I find selling price from margin?
How do I find cost from margin?
Can profit be negative?
Why must desired margin be below 100%?
Does this include taxes?
Does this include shipping?
Is this gross margin or net margin?
Can ecommerce sellers use it?
Can freelancers use it?
What related calculator should I use next?
Is this business advice?
References
Related calculators
- ROI Calculator
- Discount Calculator
- GST Calculator
- Markup Calculator
- Break-even Calculator
- Sales Tax Calculator
Last updated and version history
Last updated: 2026-07-04
- 1.0.0 (2026-07-04): Initial production release with profit, margin, markup, selling price, and cost price modes.