Profit Margin Calculator API - margin, markup, price from cost
profit_margin_calculatorFrom cost and price get margin %, markup % and profit; or from cost and wanted margin/markup get the selling price; optional VAT on top. Runs on our server, files are deleted right after the call, nothing stored. Free: 25 calls/day per IP. Paid: $0.001 per call via x402 at https://radarbg.com/x402/profit-margin-calculator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cost": 60,
"mode": "cp",
"price": 100
},
"name": "profit_margin_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | No | VAT % on top (optional) | |
| cost | No | Cost | |
| mode | No | cp cost+price, cm cost+margin %, ck cost+markup % | cp |
| price | No | Selling price (mode=cp) | |
| percent | No | Margin or markup percent (mode=cm/ck) |