Calculators
Markup <-> margin conversion API
Converts a markup % to the resulting margin % (margin = markup/(1+markup)) or a margin % to the equivalent markup % (markup = margin/(1-margin)) — the conversion retailers constantly get wrong. Answers 'what margin does a 50% markup give', 'what markup gives a 40% margin', 'convert markup to margin'.
Price$0.01per request
MethodPOST
Route/v1/calc/biz-markup-margin-convert
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcmarkupmarginconversionpricingretailopsfinance
API URL
Integration docshttps://x402.hexl.dev/v1/calc/biz-markup-margin-convertExample request
{
"markupPercent": 50
}Example response
{
"formula": "margin = markup / (1 + markup)",
"markupPercent": 50,
"marginPercent": 33.33,
"direction": "markup->margin"
}Input schema
{
"type": "object",
"required": [],
"properties": {
"markupPercent": {
"type": "number",
"examples": [
50
]
},
"marginPercent": {
"type": "number",
"examples": [
40
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}