How we calculate this
See methodology- Subtract cost from revenue to get gross profit.
- Divide gross profit by revenue to calculate margin.
- Divide gross profit by cost to calculate markup.
Margin Calculator
Calculate gross profit, margin, and markup from selling price and cost.
Revenue - Cost ((Revenue - Cost) / Revenue) × 100 ((Revenue - Cost) / Cost) × 100 If you sell something for $100 and it costs $60, here is what the math shows.
Margin uses revenue as the base. Markup uses cost as the base. They are related, but they are not interchangeable.
Margin divides profit by revenue, so zero revenue would cause a divide-by-zero problem.
Yes. If cost is higher than selling price, gross profit is negative and margin will also be negative.
Use margin when you want profit as a share of selling price. Use markup when you are pricing from cost.
These tools are designed to make the math visible, keep assumptions clear, and give you a practical planning result you can review quickly.
This calculator is for educational and planning purposes only. It does not replace professional financial, tax, accounting, or business advice.