RadarPricesOrder

Home › APIs › Calculators & dates

Calculators & dates

Profit Margin Calculator API

In plain words

From cost and price see your margin and markup, or find the price you need for the margin you want.

Used by: Small businesses, HR and payroll, finance apps and everyday users.

From 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.

Try it live, no sign-up

Run the example as is, or change the input. 5 own tries a day without a key.

Example request

curl -X POST https://radarbg.com/v1/profit-margin-calculator \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"mode": "cp", "cost": 60, "price": 100}'

Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.

Inputs

FieldTypeDescription
modestringcp cost+price, cm cost+margin %, ck cost+markup %
costnumberCost
pricenumberSelling price (mode=cp)
percentnumberMargin or markup percent (mode=cm/ck)
vatnumberVAT % on top (optional)

Price

Included in every plan: 500 calls a month free, then from €9 a month for 5,000 calls across all APIs. Pro, €29 for 25,000 calls, is the one we recommend.

Questions

What does the Profit Margin Calculator API do?

From cost and price see your margin and markup, or find the price you need for the margin you want.

Where does the data come from?

From 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.

How much does it cost?

500 calls a month are free with no card. Paid plans start at EUR 9 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.

Can I use it without writing code?

Yes. Try it live on this page, use our free browser tools, or ask us to run it on your list as a service.

Related APIs

Age Calculator APIShows exactly how old someone is in years, months and days, and when the next birthday is.
Business Days Calculator APICounts working days between dates, skipping weekends and the public holidays of your country.
Compound Interest Calculator APIShows how your savings grow over the years with interest and monthly deposits.
Date Calculator APICounts the days between two dates, or adds days, weeks or months to a date.
Loan Calculator APIShows your monthly loan payment, total interest and the full payment plan.
Percentage Calculator APIAnswers everyday percent questions, like 'what is 15% of 80' or 'how much did it go up'.