Calculate profit margin, markup, and profit from cost and selling prices.
Calculate profit, margin, and markup from your cost and selling prices
Formulas
Profit = Selling Price - Cost PriceMargin = (Profit / Selling Price) × 100Markup = (Profit / Cost Price) × 100100% Private — Runs in Your Browser
All calculations happen locally using JavaScript. Your financial data is never sent to any server, stored, or shared.
Calculate your profit margin and markup in two simple modes:
Profit margin measures how much of each dollar of revenue is actual profit. It is expressed as a percentage of the selling price. A 40% margin means for every $1 of revenue, you keep $0.40 as profit.
Markup measures how much you add on top of your cost. It is expressed as a percentage of the cost price. A 50% markup on a $100 cost means you sell for $150.
Margin uses selling price as the base; markup uses cost price. Since selling price is always higher than cost, markup is always larger than margin. Confusing them leads to pricing errors.
Markup = Margin / (1 - Margin)
To convert margin to markup, divide by (1 minus margin as decimal). A 30% margin equals 42.86% markup.
Many businesses set a 50% markup thinking they get 50% margin. In reality, a 50% markup on a $100 cost ($150 selling price) gives only a 33.3% margin — a significant difference in profitability perception.
Use margin for financial reporting and profitability analysis. Use markup for setting prices from costs. Both are essential — margin tells you how profitable you are, markup tells you how to price.
Profit = Selling Price - Cost Price
This is the most basic calculation. If you buy a product for $40 and sell for $65, your profit is $25. Simple, but fundamental to all other calculations.
Margin % = (Profit / Selling Price) × 100
Using the example above: ($25 / $65) × 100 = 38.46%. This means 38.46 cents of every dollar earned is profit. This is the metric investors and analysts focus on.
Markup % = (Profit / Cost Price) × 100
Using the example: ($25 / $40) × 100 = 62.5%. This means you added 62.5% on top of your cost. Use this when pricing products from cost.
Selling Price = Cost / (1 - Desired Margin / 100)
To achieve a 40% margin on a $50 cost: $50 / (1 - 0.40) = $83.33. This is the formula used in Mode 2 of our calculator.
Determine the right selling price for your products by targeting a specific profit margin. Enter your cost and desired margin to get the exact price needed.
Analyze your product margins to identify which items are most profitable. Focus on high-margin products to maximize overall business profitability.
Calculate margins on service offerings by factoring in labor, materials, and overhead costs. Ensure your service rates deliver healthy margins.
Set wholesale prices that maintain your margin while offering retailers enough markup to incentivize distribution.
See how discounts affect your profit margin. A 20% discount on a 30% margin product can reduce your margin to under 15%. Plan promotions carefully.
Estimate competitor margins from their known prices and estimated costs. Understand if they can sustain price wars or if your margins give you room to compete.
Calculate gross profit margins for financial statements, investor presentations, and business valuations. Consistent margin tracking reveals business health trends.
Combine margin data with fixed costs to determine your break-even point. Know exactly how many units you need to sell to cover all expenses.
High scalability, low marginal cost per user
Patent protection enables premium pricing
Leverage and fee-based revenue models
Varies widely by product category
Perishable goods and high competition
High fixed costs and material expenses
Labor-intensive with project risks
High volume, low margin, thin competition
Calculate selling price markup from cost and desired profit.
Calculate return on investment for any business venture or project.
Calculate the break-even point for your products or services.
Calculate discounted prices and savings amounts quickly.
Calculate sales commissions and earnings from deals.
Calculate compound interest and investment growth over time.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support