Margin Calculator
Calculate profit margin, markup, and total profit from cost and selling price.
The Geekflare Margin Calculator helps business owners, operators, and finance teams quickly understand whether a product or service is priced profitably. Enter your cost, selling price, quantity, and optional tax percentage to calculate margin, markup, total profit, and profit per unit.
Profit margin formula
Profit margin measures profit as a percentage of revenue:
Profit margin = (Profit / Selling price) × 100If an item costs $100 and sells for $125, the profit is $25 and the margin is 20%.
Markup formula
Markup measures profit as a percentage of cost:
Markup = (Profit / Cost) × 100Using the same $100 cost and $125 selling price, the markup is 25%.
Quantity and tax
Quantity multiplies both total cost and total revenue. Tax is optional and is applied as a percentage of total cost. When tax is entered, the calculator shows both before-tax and after-tax results so you can compare the impact.
Pricing decisions
Use the result to compare target margins, spot underpriced products, and understand how tax or production cost changes affect profit. For recurring products, run the calculation with realistic quantities to see total profit, not only unit profit.
Frequently Asked Questions
- Margin compares profit to selling price. Markup compares profit to cost. For example, if an item costs $100 and sells for $125, the margin is 20% and the markup is 25%.
Tax is entered as a percentage and applied to total cost. When tax is greater than zero, the calculator shows both before-tax and after-tax results.
No. The margin calculator runs entirely in your browser and does not call an API.