Cost-Based Markup CalculatorFree online financial calculator — instant results, no sign-up
Find selling price and gross margin from a cost-based markup percentage.
Estimates only, based on the inputs and assumptions shown. This is not financial, investment, tax, or legal advice. Prices, rates and local rules may change; crypto scenarios do not predict returns. Confirm important decisions with a qualified professional.
Sign in to save results and favorites.
About the Cost-Based Markup Calculator
The Cost-Based Markup Calculator converts a unit cost and a markup percentage applied to that cost into a selling price, gross profit per unit, and gross margin. With the default unit cost of $40 and markup on cost of 50%, it gives a selling price of $60.00, gross profit per unit of $20.00, and gross margin of 33.33%. It distinguishes markup, which uses cost as its base, from gross margin, which uses selling price.
- Unit cost ($)
- The cost of one unit in dollars, with a default value of $40.
- Markup on cost (%)
- The amount added to unit cost expressed as a percentage of that cost, with a default value of 50%.
Formula and method
P = C × (1 + m / 100); G = P − C; M = (G / P) × 100, for P ≠ 0. With the defaults: P = 40 × (1 + 50 / 100) = $60.00; G = 60 − 40 = $20.00; M = (20 / 60) × 100 = 33.33%.
- CUnit cost in dollars.
- mMarkup on cost entered as a percentage, such as 50 for 50%.
- PSelling price per unit in dollars.
- GGross profit per unit in dollars.
- MGross margin expressed as a percentage of selling price.
Divide the markup percentage by 100, multiply it by unit cost to find the dollar markup, and add that amount to cost to obtain selling price. Subtract cost from selling price to find gross profit per unit. Divide gross profit by selling price and multiply by 100 to obtain gross margin, rounding the displayed results to two decimal places.
Worked example
These are the calculator's starting values and the results it actually produces for them.
Inputs
- Unit cost40 $
- Markup on cost50 %
Results
- Selling price$60.00
- Gross profit per unit$20.00
- Gross margin33.33%
How to use the Cost-Based Markup Calculator
- 1Enter the cost of one unit in Unit cost ($); leave the default at 40 to follow the worked example.
- 2Enter the percentage to add to cost in Markup on cost (%); leave the default at 50 for the example.
- 3Read the selling price: $40 × (1 + 50 / 100) = $60.00.
- 4Read the gross profit per unit: $60.00 − $40.00 = $20.00.
- 5Read the gross margin: ($20.00 / $60.00) × 100 = 33.33%, and compare it with your pricing goals.
Reading your result
Selling price is the calculated amount to charge per unit before any separately applied taxes or discounts; the default result is $60.00. Gross profit per unit is the selling price minus the entered unit cost; the default result is $20.00. Gross margin is that gross profit as a share of selling price; the default result of 33.33% means about one-third of sales revenue remains after the entered unit cost.
Limitations
The calculation assumes the markup is applied to cost, not to selling price, and that the entered cost accurately represents the cost of one unit. It does not automatically account for taxes, discounts, transaction fees, shipping, overhead, or other expenses not included in that cost. Gross profit is not net profit, and the calculated price does not establish market demand or competitiveness. Gross margin is undefined when selling price is zero; negative costs or prices are generally not meaningful for ordinary retail pricing. Display rounding can create small differences when results are recalculated from rounded values.
Common questions
Why does a 50% markup produce a 33.33% gross margin?+
Markup divides the added amount by cost, while gross margin divides it by selling price. With the default inputs, the $20.00 added to $40.00 is a 50% markup, but that same $20.00 divided by the $60.00 selling price is a 33.33% gross margin.
Can I enter my target gross margin in the markup field?+
No. The field expects a percentage of cost, not a percentage of selling price. For a target margin t below 100%, the corresponding markup percentage is 100 × t / (100 − t), where t is expressed as a percentage.
Is the $20.00 gross profit in the default example my take-home profit?+
No. It is only the $60.00 selling price minus the $40.00 entered unit cost. Any operating expenses, fees, taxes, or other costs not included in that unit cost still need to be considered.
What happens if the markup on cost is zero?+
For a positive unit cost, selling price equals cost, gross profit per unit is zero, and gross margin is 0%. If cost is also zero, selling price is zero and gross margin is undefined because it would require division by zero.
Does the calculator save my information?+
Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.
You might also like
Microloan Financing Calculator
Calculate amortizing microloan payments and total cost including an upfront fee.
Invoice Factoring Cost Calculator
Calculate a flat factoring fee, initial advance and reserve release on invoice collection.
Merchant Cash Advance Cost Calculator
Calculate a factor-rate advance's total repayment and equal daily remittance.
Equipment Financing Calculator
Estimate fixed payments for equipment purchased with a down payment.
Fleet Lease Versus Buy Cost Calculator
Compare undiscounted fleet lease costs with cash purchase costs net of resale value.
Business Credit Line Interest Calculator
Estimate interest and an unused-line fee from constant average balances.
Results are estimates for informational purposes and are not financial, medical or legal advice.