Cost from Markup Calculator
Sometimes you have a finished price and a known markup convention but need the original cost behind it. This calculator runs the markup process in reverse: give it a selling price and the markup percentage applied to cost, and it recovers the cost, the markup amount in dollars, and the gross margin that price implies. The relationship is straightforward once you see it. A price is built by multiplying the cost by one plus the markup, so to undo that you divide the price by the same one plus the markup factor. A 130 dollar price at a 30 percent markup came from a 100 dollar cost, because 100 times 1.30 is 130. The frequent mistake is to subtract the markup percent from the price, which is wrong because the percent was applied to the smaller cost, not the larger price. The tool is handy for checking supplier quotes, sanity-testing a competitor's pricing assumption, or confirming a list price leaves the cost you expected. Every figure is computed deterministically from the formula shown below, and the worked example reconciles exactly to the calculator defaults so you can verify the recovered cost step by step before you rely on it.
To recover cost, divide the price by one plus the markup: cost = price / (1 + markup). A $130.00 price at a 30% markup came from a cost of $100.00, a $30.00 markup and a 23.08% margin.
Cost from markup formula
Cost = Price / (1 + Markup)
Markup = markup on cost (as a decimal)
Markup amount = Price - Cost
Gross margin = Markup amount / Price
A price is the cost multiplied by (1 plus markup), so dividing the price by the same factor returns the cost. Subtracting the markup percent from the price is wrong, because the percent was applied to the cost, not the price.
Worked example
An item sells for 130 dollars under a standard 30 percent markup on cost.
- 1 + markup = 1 + 0.30 = 1.30
- Cost = 130 / 1.30 = 100.00
- Markup amount = 130.00 - 100.00 = 30.00
- Gross margin = 30.00 / 130.00 = 0.2308 = 23.08%
The recovered cost is 100.00 dollars. These are the calculator's default inputs, so the result above matches the widget exactly.
Recovered cost from a 130 dollar price
The higher the assumed markup, the lower the cost that price could have come from.
| Markup on cost | Recovered cost | Gross margin |
|---|---|---|
| 20% | $108.33 | 16.67% |
| 30% | $100.00 | 23.08% |
| 50% | $86.67 | 33.33% |
| 100% | $65.00 | 50.00% |
Pricing and margin basics: US Securities and Exchange Commission, Investor.gov.
Cost from markup calculator: frequently asked questions
How do I find cost from a price and markup?
Divide the selling price by one plus the markup written as a decimal. If an item sells for 130 dollars at a 30 percent markup on cost, divide 130 by 1.30 to recover a 100 dollar cost. This reverses the usual markup calculation, where you multiply the cost by one plus the markup to get the price.
Why divide by one plus the markup?
Because price equals cost multiplied by (1 plus markup). To undo that and solve for cost, you divide the price by the same (1 plus markup) factor. A common error is to subtract the markup percentage from the price, which gives the wrong answer because the percentage was applied to the cost, not the price.
What is the difference between markup and margin here?
Markup is the profit as a share of the cost you are recovering, while margin is the same profit as a share of the selling price. A 30 percent markup equals a 23.08 percent margin. The calculator reports the recovered cost, the markup amount in dollars, and the implied margin so you can see both views.
When is this calculation useful?
It helps when you know a retail price and the markup convention used but need the underlying cost, for example to check a supplier quote, reverse-engineer a competitor's pricing assumption, or confirm that a listed price leaves the cost you expected after a standard markup.
What is the cost from markup formula?
Cost equals price divided by (1 plus markup), where markup is written as a decimal. The markup amount equals the price minus the cost, and the gross margin equals that markup amount divided by the price.
Official sources
- Pricing, margin and small-business money basics: US Securities and Exchange Commission, Investor.gov. As at 25 June 2026.
Reviewed by the CalculatorHub team, edited by James Graham, 25 June 2026. See our methodology. This is general information, not financial, tax, legal or investment advice.