Enter any two values
Tip: If you know your cost and your target markup %, you’ll get the selling price instantly. If you know your selling price and cost, you’ll get both markup % and margin %.
This free Markup Formula Calculator helps you price products correctly in seconds. Enter any two values (Cost, Selling Price, Markup %, Margin %) and it will compute the rest — plus show a clean breakdown you can screenshot and share.
Tip: If you know your cost and your target markup %, you’ll get the selling price instantly. If you know your selling price and cost, you’ll get both markup % and margin %.
Markup is one of those business terms that seems simple until you’re staring at a spreadsheet trying to pick a price that covers costs and still leaves profit. This page is built to make it painless: you can plug in any two values and get the rest instantly, plus you’ll get a clear explanation of what the calculator is doing.
The standard markup formula is: Markup % = (Selling Price − Cost) ÷ Cost × 100. In symbols: MU = (P − C) / C × 100. Markup answers: “How many percent did I add on top of cost?”
The margin formula is: Margin % = (Selling Price − Cost) ÷ Selling Price × 100. In symbols: M = (P − C) / P × 100. Margin answers: “What percent of the selling price is profit?”
If you know cost and target markup, you can compute selling price directly: P = C × (1 + MU/100). Example: cost $40 with 25% markup → P = 40 × 1.25 = $50.
If you know the selling price and markup, solve for cost: C = P ÷ (1 + MU/100). This is common when you’re back-solving a wholesale cost target from a market price.
The calculator uses these formulas, plus a few simple algebra steps, to fill in the missing values. The only time it can’t solve the problem is when you provide values that don’t uniquely define a price (for example, entering only markup % and margin % without cost or price).
Here are practical examples so you can sanity-check your numbers. You can copy these into the inputs above to see the calculator match the results.
This is the classic confusion. A 40% margin is not a 40% markup. If your margin is 40%, then profit is 40% of price, meaning cost is 60% of price. The equivalent markup is: MU = M / (1 − M) (with M as a decimal).
For services, cost can be your internal cost per hour (wages + overhead allocation). If your cost is $60/hour and you charge $100/hour:
These examples show why businesses often talk about margin (profit as a percent of sales), while suppliers and contractors often talk about markup (profit as a percent of cost). This calculator includes both so you can speak either language.
The Markup Formula Calculator is built for the real way people work: you rarely have every number upfront. Sometimes you only know your cost and the target markup. Other times, you know the market selling price and you want to see what margin you’re actually making. So instead of forcing a single “mode,” this calculator supports multiple input pairs.
If you only enter markup % and margin %, there is no unique answer without a cost or price, because percentages alone do not define a dollar amount. In that case, the calculator will tell you exactly what to add to make the numbers solvable.
Prices are rounded to two decimals (cents). Percentages are shown to two decimals by default. If you’re doing accounting or tax reporting, keep full precision in your system of record and use this tool for quick pricing checks.
Markup uses cost as the denominator: (P − C) / C. Margin uses selling price as the denominator: (P − C) / P. The same product can have a 50% markup and a 33.33% margin — that’s normal.
Convert margin to a decimal (e.g., 40% → 0.40), then use: Markup = Margin / (1 − Margin). So 40% margin becomes 0.40 / 0.60 = 0.6667 → 66.67% markup.
Convert markup to a decimal (e.g., 50% → 0.50), then use: Margin = Markup / (1 + Markup). So 50% markup becomes 0.50 / 1.50 = 0.3333 → 33.33% margin.
For best results, yes — include all costs you must pay to fulfill one sale (shipping, packaging, platform fees, transaction fees, and a reasonable overhead allocation). If you don’t, the calculator will still be mathematically correct, but your real-world profit might be lower than the “profit per unit” it shows.
Because margin divides by selling price, which is bigger than cost. That makes the percentage smaller. Example: cost $20, price $30. Profit $10. Markup = 10/20 = 50%. Margin = 10/30 = 33.33%.
Yes. If you know your original selling price and a discounted selling price, plug the discounted selling price in as “Selling Price” and use the same cost. You’ll see how your markup and margin change under the discount. This is a fast way to test if a promo still keeps you profitable.
Use these to double-check pricing, geometry, and everyday math.
MaximCalculator provides simple, user-friendly tools. Always double-check important business decisions, especially if taxes, contracts, or regulated pricing are involved.