Math & Everyday Calculators · 5 min read · Updated 2026-11-20

Gross Margin vs. Markup & Exact Decimal Ratio Simplification (GCD)

Pricing a product using markup when your target is a gross margin percentage quietly erodes unit profitability.

1. Margin Uses Selling Price; Markup Uses Cost

If an item costs $60 and sells for $100, profit is $40. Gross Margin is $40 / $100 = 40%, while Markup is $40 / $60 = 66.67%. Markup is always higher than margin for profitable sales.

Margin = (Price - Cost) / Price   |   Markup = (Price - Cost) / Cost

2. Exact Decimal-to-Integer GCD Ratio Simplification

Converting 1.5 : 2.25 using binary floats can introduce precision glitches. Shifting decimal digits via string scaling (150 : 225) and dividing by GCD(150, 225) = 75 yields exact 2 : 3.

Try the Interactive Browser Tool

Compare gross profit margin vs. markup from cost and selling price, plus exact GCD ratio simplification.

Related Guides & Utilities