Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Reverse Margin Calculator
Pricing & Markup Calculators

Reverse Margin Calculator

Published onOctober 15, 2025 Updated onOctober 25, 2026 8:17 am

Reverse margin means working backwards: instead of computing the margin from a known cost and price, you start with the margin you want and solve for the missing number. This calculator handles both directions, price to maximum cost and cost to required price, plus markup-to-margin conversion, in one place. If you only need the forward math, a 20 percent margin calculator covers that common anchor case.

Reverse Margin Calculator
Target margin to price or cost, plus markup to margin conversion
Enter a selling price greater than zero.
Enter a margin from 0 up to (but not including) 100%.
Enter a unit cost greater than zero.
Enter a margin from 0 up to (but not including) 100%.
Enter a markup greater than -100%.
Result
Copied to clipboard.

Margin is profit as a share of the selling price; markup is profit as a share of cost. The two are never interchangeable, which is exactly why this tool always shows both.

Quick Answer

Reverse margin solves pricing backwards from a target margin. Pick a direction: with a $200 selling price and a 30% target margin, your maximum affordable cost is $140.00 (cost = price x (1 - margin)); with an $80 cost and a 25% target margin, the required selling price is $106.67 (price = cost / (1 - margin)); and a 50% markup converts to a 33.33% margin. Margin and markup are not the same number, so the tool always shows both.

On this page
  • Quick Answer
  • How to use this calculator
  • The formulas
  • Margin vs. markup: the mistake that costs real money
  • Worked examples, checked against this exact tool
  • Your margin is also your maximum discount
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How to use this calculator

Pick the direction that matches your situation. Choose "Price to max cost" when the selling price is fixed, by a contract, a marketplace or a competitor, and you need a cost ceiling for sourcing or delivery. Choose "Cost to required price" when your cost is fixed and you need the price that protects your margin. Choose "Markup to margin" when someone quotes you a markup and you need to know the margin it really delivers. Enter the two numbers, click Calculate, and read the breakdown: the answer, the profit per unit, and the equivalent figure in the other system.

Two inputs need honest numbers to give honest answers. The margin must be a margin, a share of the selling price, not a markup. And the cost should be the full cost of delivering the unit: materials, labor, packaging, transaction fees, allocated overhead. A margin computed on an understated cost is a margin you do not actually have. Service businesses can use the same math by treating fully loaded delivery cost per project or per hour as the "unit cost", the same framing an agency margin calculator uses for retainer work.

The formulas

All three modes come from one definition: margin = (price - cost) / price. Rearranging that definition gives the reverse formulas the calculator uses.

  • Maximum cost from price: cost = price x (1 - margin / 100). Example: $200 x (1 - 0.30) = $140.00.
  • Required price from cost: price = cost / (1 - margin / 100). Example: $80 / (1 - 0.25) = $106.67.
  • Markup to margin: margin = markup / (100 + markup) x 100. Example: 50 / 150 x 100 = 33.33%.
  • Margin to markup: markup = margin / (100 - margin) x 100. Example: 30 / 70 x 100 = 42.86%.

Notice the asymmetry in the last two. Converting markup to margin divides by (100 + markup); converting margin to markup divides by (100 - margin). That minus sign is the whole story of this page: as the margin approaches 100%, the required markup explodes toward infinity, which is why no finite price can ever deliver a 100% margin.

Margin vs. markup: the mistake that costs real money

Margin and markup describe the same profit with different denominators. Margin divides profit by the selling price; markup divides profit by the cost. That single difference is why a 25% markup is only a 20% margin, and why pricing "cost plus 30%" leaves you short when you promised the business a 30% margin. Grocery margin calculators exist as their own tool precisely because that industry runs on thin single-digit margins where the confusion is fatal.

Markup on costEquals margin on pricePrice on $100 costWhat it means
10%9.09%$110.00Small gap; easy to confuse, small damage
25%20.00%$125.00The classic trap: "25%" keeps only 20%
50%33.33%$150.00A third of the price, not half
100%50.00%$200.00Keystone pricing: double the cost, keep half
200%66.67%$300.00Markup has no ceiling; margin never reaches 100%

The pattern to memorize: margin is always the smaller number, and the gap widens as the numbers grow. If a calculator ever accepts a 100% or higher margin without complaint, its answers below that point deserve a second look too. This one rejects them, because a 100% margin would require zero cost.

Worked examples, checked against this exact tool

Example 1, price to cost. You sell a consulting package for $200 and the business requires a 30% margin. Max cost = $200 x (1 - 0.30) = $140.00, leaving $60.00 of profit per unit, which is a 42.86% markup on cost. Every dollar of delivery cost above $140.00 eats into the required margin.

Example 2, cost to price. Your unit cost is $80 and you need a 25% margin. Required price = $80 / (1 - 0.25) = $106.67. Check: ($106.67 - $80) / $106.67 = 25%. A "cost plus 25%" price of $100.00 would only deliver a 20% margin, five points short of the target. That five-point gap is the most common pricing error in small business, and the reason margin-based pricing divides by (1 - margin) instead of multiplying by (1 + margin).

Example 3, markup to margin. A supplier quotes cost plus 50%. Your real margin = 50 / 150 x 100 = 33.33%. The tool also runs the check backwards, converting 33.33% margin back to 50.00% markup, so you can see the round trip closes.

Your margin is also your maximum discount

There is a second reading of the margin number that pricing pages rarely mention. If your margin is 25%, you can discount the price by up to 25% before the sale earns exactly zero. That makes the margin your discount ceiling: any promotion deeper than your margin loses money on every unit, before overhead. Run the "Cost to required price" mode, note the margin, and you have the largest discount you can offer without going underwater. Businesses that plan promotions around markup instead discover the loss after the campaign, when the accounts come in.

What competing calculators miss

Most margin calculators only run forward: cost and price in, margin out. They cannot answer the question sellers actually ask, which is what cost they can afford or what price they must charge. The reverse tools that do exist tend to handle one direction, price from cost, and skip the price-to-cost direction that sourcing decisions need. Conversion tables are common, but few tools show the round trip, margin back to markup, that proves the conversion closed. And several popular calculators accept impossible inputs, margins of 100% or more, without complaint, returning zeros or negative numbers as if they meant something.

This calculator keeps all three reverse operations in one place with the formulas shown under every result, rejects impossible margins with a plain explanation, and always displays the equivalent figure in the other system so a markup thinker and a margin thinker see the same reality. For a related margin lens on blended product mixes, a direct margin calculator breaks margin down by cost component.

Frequently asked questions

Reverse margin is calculating backwards from a target profit margin to find the cost or price that produces it. Instead of asking "what margin does this price give me," you ask "what cost can I afford if I must earn a 30% margin at this price."

To find the maximum cost: cost = selling price x (1 - target margin as a decimal). To find the required price: price = cost / (1 - target margin as a decimal). To convert markup to margin: margin = markup / (100 + markup) x 100.

Because margin divides profit by the larger number (selling price) while markup divides the same profit by the smaller number (cost). Same dollars of profit, bigger denominator, smaller percentage.

No. A 100% margin would require zero cost, and anything above 100% is mathematically impossible for a positive price. This calculator rejects margins of 100% and above instead of returning a misleading zero or negative number.

Use margin when you think in terms of revenue and profitability targets, which is how financial reporting works. Use markup when you build prices up from costs operationally. Just never mix the two without converting.

Yes. Replace "unit cost" with fully loaded delivery cost per project or per hour (labor, subcontractors, allocated overhead) and the same math applies.

At exactly 100% the divisor (1 - margin) is zero, so no finite price satisfies the formula; above 100% the arithmetic returns a negative price. Rejecting these inputs keeps the tool from printing numbers that look precise but mean nothing.

It translates your margin target into the markup language your suppliers and cost sheets use. A 30% margin target needs a 42.86% markup on cost; a 25% margin needs 33.33%. If someone quotes you a markup below that equivalent, the margin target is not actually met.

Add This Calculator to Your Website

Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. QuickBooks. Understanding Markups vs. Margins. Accessed October 23, 2026.
  2. Shopify. Gross Margin Ratio Formula and How To Calculate It. Accessed October 23, 2026.
  3. Booke.ai. How to calculate a selling price from a target margin: the ultimate guide. Accessed October 23, 2026.
  4. MerchantFlow. Markup vs. Margin: Key Differences + How To Calculate. Accessed October 23, 2026.
  5. Dynamic Inventory. Markup vs Margin: How to Define and Calculate. Accessed October 23, 2026.
  6. Jobber. How to Calculate Markup: A Guide for Home Service Pros. Accessed October 23, 2026.
  7. U.S. Small Business Administration. Worksheet: Pricing Models for a Successful Business (PDF). Accessed October 23, 2026.
  8. Billdu. How to Price Your Services as a Small Business Owner. Accessed October 23, 2026.
  9. ClimbTheLadder. What Should the Markup Be on a Product for Profit?. Accessed October 23, 2026.
  10. Business Tools Insight. How To Calculate Markup: A Simple Step-by-Step Guide. Accessed October 23, 2026.

Related calculators

Pricing & Markup Calculators Material Markup CalculatorPrice your materials correctly, in either direction.Pricing & Markup CalculatorsMarkup Percent CalculatorMarkup percentage is the share you add on top of cost to reach a selling price, and it is the fastest sanity...Pricing & Markup CalculatorsJewelry Markup CalculatorJewelry pricing lives or dies on markup math. The industry standard is keystone: double the cost for retail.Pricing & Markup CalculatorsCost Plus Calculator Pricing by gut feel fails in both directions: too low and every sale quietly loses money once fees and shipping land, too high and buyers walk.Pricing & Markup CalculatorsNegative Margin CalculatorSelling a product for less than it costs is easy to do by accident and expensive to leave unnoticed: when the margin is negative, every sale deepens the loss instead of diluting it.Pricing & Markup CalculatorsMargin Loss CalculatorA margin loss is easy to feel and hard to size up: costs creep, discounts stack, and the share of each sale you keep quietly shrinks.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search