A cost of selling price calculator estimates the selling price needed to cover a product’s cost and a target profit margin. Enter the total cost per item and the desired margin as a percentage of the selling price; the calculator returns the required price and the profit per item.
Formula
The selling price for a target profit margin is:
Selling price = cost per item ÷ (1 − profit margin ÷ 100)
In the calculator, c is the total cost per item in the currency you use, and m is the target profit margin entered as a percentage from 0 to 100. The first result, price, is the required selling price in the same currency as the cost. The second result, profit, is selling price minus cost. This is a basic per-item calculation; it does not account for tax, shipping charged separately, or other price adjustments.
The formula uses margin, not markup. Margin is profit divided by selling price. At a 25% margin, for example, costs take up 75% of the selling price, so the cost is divided by 0.75. A 100% margin is not permitted in practice by this calculator’s input limit because the formula would divide by zero; its maximum is 100, so entering exactly 100 cannot produce a valid price. Treat 100% as an invalid target and use a value below 100%. A zero-cost item is a special case: the formula returns zero, so it cannot represent a price when you want a positive profit on a cost-free item.
Worked Example
Using the calculator’s defaults, the cost is $20 per item and the target margin is 25%.
- Convert the margin to a decimal: 25 ÷ 100 = 0.25.
- Subtract it from 1: 1 − 0.25 = 0.75.
- Divide cost by the remainder: $20 ÷ 0.75 = $26.666…, which rounds to $26.67.
- Calculate profit per item: $26.67 − $20 = $6.67.
At the unrounded price, the profit is $6.666… and the margin is exactly 25%. Rounding the price to cents makes the displayed margin very slightly different: $6.67 ÷ $26.67 is about 25.01%. That small discrepancy is normal when a price is rounded to the nearest cent.
When to Use This Calculator
Use it when you know what an item costs you and want to set a price based on a chosen profit margin. It is useful for checking a draft price, comparing margin targets, or seeing how a cost change affects the price required to preserve a margin. The arithmetic works in any currency: the calculator labels the amount with dollars, but you can treat the symbol as your own currency and keep every cost and result in that same currency.
For a useful cost figure, include the costs that genuinely apply to each unit. Depending on the business and product, that may mean materials, production or purchase cost, packaging, and per-unit fulfillment charges. Shared overhead such as rent or software does not automatically belong in a unit cost; allocating it requires a separate method. The calculator cannot decide which costs to include, so the result is only as meaningful as the cost figure entered.
It can also help answer “What price gives me this margin?” It does not tell you whether customers will accept that price, whether it is competitive, or whether the underlying cost estimate is complete. Those questions require information beyond this formula.
Margin Versus Markup
A common mistake is to add a percentage to cost and call the result a target margin. Adding 25% to a $20 cost gives $25. That is a 25% markup, because the $5 profit is 25% of the $20 cost. But the margin is $5 ÷ $25 = 20%.
To get a 25% margin, the calculator gives $26.67. The profit is about $6.67, which is 25% of the selling price. Markup and margin both describe the relationship between cost, profit, and price, but use different denominators:
- Markup percentage = profit ÷ cost × 100.
- Profit margin = profit ÷ selling price × 100.
If you need a price based on markup rather than margin, the formula is different: price = cost × (1 + markup percentage ÷ 100). Do not enter a markup target into this calculator as though it were a margin target.
Costs and Limits to Consider
The result is a simple target price, not necessarily the final amount a customer pays or the amount the seller keeps. For example, discounts reduce the actual selling price, while payment fees or variable shipping expenses may reduce the profit retained. If these are important, include appropriate per-item costs in the cost input or calculate their effects separately. Avoid counting the same expense twice.
Taxes and other required charges can be treated differently depending on location and how prices are displayed. This calculator does not determine tax treatment or add tax to a price. If a tax is collected in addition to the selling price, it is generally not the same thing as profit; consult the relevant rules or a qualified adviser for a specific situation.
Also remember that a target margin is a planning assumption, not a guarantee of profit over a full business period. Unsold stock, returns, waste, fixed overhead, and changes in costs can affect overall results even when an individual sale meets the chosen margin. Use current, consistent cost data and revisit the calculation when those costs change.
Reading and Checking the Result
The first output is the required price, rounded to two decimal places. The second is the difference between that displayed price and the entered cost. For a quick check, divide the displayed profit by the displayed selling price and multiply by 100. The result should be close to the target margin, with small differences caused by rounding.
Keep units consistent. If one cost is recorded per dozen and another per item, convert them to the same basis before adding them. Likewise, do not combine a cost in one currency with a price in another without converting first. Entering an incomplete cost, confusing margin with markup, or rounding intermediate figures too early can make the final price misleading.
Frequently Asked Questions
How do I calculate a selling price from cost and margin?
Divide the total cost per item by 1 minus the target margin expressed as a decimal. For a 30% margin, divide cost by 0.70.
What is the difference between selling price and cost price?
Cost price is what it costs to obtain or produce an item, using the costs included in your calculation. Selling price is the amount charged for the item before any separately applied charges or adjustments.
Can I use this calculator for a 100% profit margin?
No. A 100% margin would make the denominator zero, so there is no finite selling price for a positive cost. Choose a target below 100%.
Does the calculated price include tax or shipping?
No. The formula includes only the cost entered and the target margin. Decide separately whether relevant per-unit expenses belong in the cost figure, and handle taxes according to the applicable rules.
Why is my actual margin slightly different from the target?
The displayed price is rounded to two decimal places. That rounding can make the margin calculated from the displayed price differ slightly from the target, especially for low-cost items.
Related
Formula used
in c | Cost per item | $ | 20 | 0 | 1000000000 in m | Target profit margin | % | 25 | 0 | 100 out price | Required selling price | $ | c / (1 - m / 100) | 2 out profit | Profit per item | $ | price - c | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Uptime 9s Calculator: What 99.9999999% Means0.03154 seconds
- Per Ton Calculator: Convert Weight and Understand Tons1.000 ton
- Paper Roll Length Calculator by Weight625.00 m
- Unit Rate Calculator: Find and Use One5.00 units per unit
- How to Calculate Splitting Costs Fairly30.00 $
- Cost Per Item: Formula, Examples, and What to Include5.00 $/item