sale_price = cost / (1 - margin_percent/100)
Pricing
Profit Margin / Markup / Discount Calculator
Convert margin, markup, and discount with live formulas you can trust.
Result
Price composition
Cost base and gross return on the same scale.
How to use it
- Pick the correct mode first: margin to price, markup to price, discount to sale price, or sale price to discount. Then fill in the fields that mode shows (cost with a margin or markup, or a list price with a discount or sale price) so the math reflects whether you are setting a new price, evaluating a markdown, or reverse-checking a quote.
- Read the answer for your mode (the sale price, or the discount in sale-to-discount mode), then gross profit, margin percent, markup percent, discount percent when there is a list price, and the formula trace. Use it to catch common interpretation errors, such as assuming 50% markup equals 50% margin when it actually equals a 33.3% margin.
- Treat warnings as decision signals, not cosmetic notes. Margin above 80% often means cost input is incomplete, a discount above 60% usually indicates clearance pricing, and any sale price below cost means the transaction destroys gross profit immediately.
- Use the output to set standard pricing guardrails for sales teams, promo calendars, and quote templates. If a planned discount drops margin below your minimum acceptable threshold, change bundle structure or add value before approving the offer.
- Re-run for every supplier cost change, promo test, or channel-specific price list. Track average realized discount and post-discount margin by channel because discount creep often grows slowly enough to hide until gross profit compresses.
Questions people usually ask
What is the difference between margin and markup?
Margin is gross profit as a percentage of sale price, while markup is gross profit as a percentage of cost.
Can this convert discounts too?
Yes. Use list price with discount percent to compute sale price, or reverse-calculate discount from list and sale price.
Does this include VAT or sales tax?
No. This tool models gross pricing only. Tax handling should be applied separately for your jurisdiction.
Is this tool free and private to use?
Yes. AI Biz Hub tools are free, no-signup browser tools. Inputs stay in your browser unless you choose to share a URL.
Is this professional advice?
No. Outputs are business planning estimates — not legal, tax, or accounting advice.
Related calculators
- Pricing Micro-SaaS Pricing Engine
Find your price floor, suggested price, and ceiling from per-user costs, competitor benchmarks, and target margin.
- Pricing AI Product Margin Calculator
Calculate per-user margin for AI products from subscription price, API token costs, hosting, and per-user expenses.
- Pricing Profit Margin Calculator
Calculate gross margin and markup, or set prices from desired margin percentages.
- Pricing Price Elasticity Calculator
Calculate price elasticity of demand and see whether a price change grows or shrinks revenue.
Background on the Profit Margin / Markup / Discount Calculator
- Examples Markup Examples
Four worked markup cases: the selling price you need when unit cost rises or your margin target moves, with the equivalent markup on cost.
Articles
- 8 min read How to Price a Product
Price a product by matching the model to your cost structure and willingness-to-pay evidence: cost-plus floor, competitive ceiling, value aim.
- 7 min read Wholesale Pricing Tools With Automated Updates (2026)
Wholesale pricing tools for 2026: margin-target, markup and keystone methods, apparel margins by channel, and what automated price updates trigger on.
More in AI product economics
Understand the costs, margins, and pricing of building AI-powered products.
- Startup Cost Estimator
- Profit Margin Calculator
- SaaS Pricing Strategy Calculator
- Unit Economics Calculator
Use it from code
The same calculation as a JavaScript module you can import. It runs where you import it, with no request, key or rate limit.
import { compute } from "https://aibizhub.io/engines/margin-markup-discount-calculator.js"; Input and output contract, TypeScript types and the guide for agents.