How to Use the Markup Calculator
Use the calculator to find markup %, margin %, selling price, or cost from the figures you know. Choose one of the three modes, enter the required values, and select Calculate.
Choose a Calculation Mode
Select the mode that matches your known figures:
- Cost + selling price: calculates profit, markup %, and margin %.
- Cost + target markup %: calculates selling price and the related results.
- Selling price + target margin %: calculates cost and the related results.
Enter Values and Review the Result
- Enter the required figures for the selected mode.
- Select Calculate to display the result.
- Review the calculation mode, cost, selling price, profit, markup %, and margin %.
- Use Copy result to copy the result, or Download result (.txt) to save it as a text file.
- Select Reset to clear the current calculation.
Formula used displays five formula lines for the calculation, along with the assumptions table.
Validation and Displayed Values
Cost and selling price must be positive. Markup cannot be negative, margin must be below 100%, and selling price cannot be below cost. If a value fails validation, the calculator shows an error instead of a result.
Money and percentage outputs are formatted to two decimal places. Calculations use the parsed input values, while displayed values are formatted for presentation. For example, a $90 selling price with a displayed 33.33% target margin gives a cost of about $60; rounded percentages can produce slightly different results from an exact repeating percentage.
Limits and Local Calculation Behavior
- The calculator uses the figures you enter rather than live market or accounting data.
- The interface represents one unit and one cost figure. Include any additional costs in the figures you enter if you want them reflected.
- It does not separately model taxes, discounts, shipping, or payment processing fees.
- The calculation in
script.jsruns locally in your browser.
Frequently Asked Questions
What is the difference between markup and margin?
Markup is profit expressed as a percentage of cost (Profit / Cost x 100). Margin is profit expressed as a percentage of selling price (Profit / Selling price x 100). The same dollar profit produces a higher markup percentage than margin percentage, because cost is always smaller than selling price when there is a profit.
What is the markup formula?
Profit = Selling price - Cost. Markup % = Profit / Cost x 100. For example, a $60 cost sold for $90 gives $30 profit and a 50% markup ($30 / $60 x 100), while the margin on the same sale is 33.33% ($30 / $90 x 100).
How do I calculate selling price from cost and a target markup?
Selling price = Cost + (Cost x Markup % / 100). For example, a $60 cost with a 50% target markup gives a selling price of $90 ($60 + $60 x 0.5).
How do I calculate cost from selling price and a target margin?
Cost = Selling price - (Selling price x Margin % / 100). For example, a $90 selling price with a 33.33% target margin gives a cost of about $60.
Does this tool fetch live data or give personalized pricing advice?
No. It performs a single, transparent calculation using only the cost, selling price, or target percentage you type in. It does not fetch market prices, competitor data, or accounting records, and it is not personalized pricing, financial, or tax advice.