# Profit Margin Calculator — Agent Guide

> Instantly calculate your gross profit margin, markup percentage, and cost-to-revenue ratio. Understand the profitability of your products or services and benchmark against industry standards.

Base URL: `https://kappax.io`

## Endpoint

`POST /api/tools/profit-margin-calculator`

Content-Type: `application/json`

## Request Body

- `revenue` (number, required): Total revenue or selling price ($)
- `cost` (number, required): Total cost of goods or product cost ($)

## Response

Returns JSON with `tool` (slug) and `result` object:

- `profit` (number): Net profit amount
- `grossMargin` (number): Gross margin percentage
- `markup` (number): Markup percentage
- `costRatio` (number): Cost-to-revenue ratio percentage

## Example

```bash
curl -X POST https://kappax.io/api/tools/profit-margin-calculator \
  -H "Content-Type: application/json" \
  -d '{"revenue":10000,"cost":10000}'
```

## Rate Limits

- 60 requests per minute per IP
- Please include a descriptive User-Agent header

## More Tools

See all available tools at https://kappax.io/tools
Full tools index for agents: https://kappax.io/llms.txt
