# Margin & Markup Calculator

Convert between cost, selling price, profit, gross margin and markup without confusing the two percentages.

Canonical page: https://4g3n7.com/markup-margin-calculator/

## Method
Margin = profit ÷ selling price. Markup = profit ÷ cost. Selling price at a target margin = cost ÷ (1 − margin).

## Worked example
A €60 cost sold for €100 gives €40 profit, a 40% margin and a 66.67% markup.

## Assumptions and limitations
This is gross margin before tax, fees, overhead and returns. It is not financial advice.

## Related tools
- [Percentage Calculator](https://4g3n7.com/percentage-calculator/): Calculate a percentage of a number, percentage change, or percentage difference with the formula shown.
- [3D Print Cost Calculator](https://4g3n7.com/3d-print-cost/): Estimate filament, electricity, hands-on labour and failed-print allowance for an FDM part.
- [CNC Machining Time Calculator](https://4g3n7.com/cnc-machining-time/): Estimate machining cycle and total batch time from cutting length, feed, rapids, tool changes and setup.
