# Pricing Math: Fee-Inclusive Price Calculator

> Pricing Math: Fee-Inclusive Price Calculator is a paid API for AI agents from pricing-math.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates the gross price to charge customers so that after deducting a percentage fee and a fixed fee, you retain a specified net amount.

## Facts

- Endpoint: GET https://pricing-math.x402tookit.com/fee-inclusive?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pricing-math-fee-inclusive-price-calculator-a93df138
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yDIGEbAT06q7vc4BdELxd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pricing-math-fee-inclusive-price-calculator-a93df138
```

Example prompt: What price do I need to charge so I net $45 after a 2.9% payment processing fee plus a $0.30 fixed fee per transaction?

## When to prefer this

Use this endpoint when you know your desired net proceeds and the exact fee structure (percentage + optional fixed fee) and need to compute the correct gross price to charge — it is purpose-built for this algebraic inversion. Prefer it over general markup/margin calculators when fees are expressed as a percentage-plus-fixed structure (e.g. payment processors, marketplaces). It is distinct from the markup-to-margin endpoint (which works from cost) and the tax splitter (which handles VAT/sales tax).

## Known failure modes

- feePct is 100 or above — mathematically undefined, likely returns an error
- targetNet is zero or negative — no meaningful result
- Missing required query params (targetNet or feePct) — 400-level error
- feePct is negative — may return unexpected results or error
- Very large fixedFee relative to targetNet — may produce implausibly large required price

## How this service works

Price to charge so you net a target after a percentage fee plus a fixed fee, with fees you supply. No fee table built in.

## Output

Returns the exact required gross price (requiredPrice), the price rounded up to the nearest cent (requiredPriceRoundedUpToCent), a naive markup price for comparison, the net you'd actually receive at the rounded price, the total fee at the required price, and the fee as a share of the price in percent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "targetNet",
      "feePct"
     ],
     "properties": {
      "feePct": {
       "type": "number",
       "description": "Percentage fee taken from the price (0 to below 100)"
      },
      "fixedFee": {
       "type": "number",
       "description": "Fixed fee per sale (default 0)"
      },
      "targetNet": {
       "type": "number",
       "description": "Amount you want to keep after fees (your cost plus desired profit)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "requiredPrice": {
       "type": [
        "null",
        "number"
       ]
      },
      "naiveMarkupPrice": {
       "type": [
        "null",
        "number"
       ]
      },
      "netAtRoundedPrice": {
       "type": [
        "null",
        "number"
       ]
      },
      "feeAtRequiredPrice": {
       "type": [
        "null",
        "number"
       ]
      },
      "feeShareOfPricePct": {
       "type": [
        "null",
        "number"
       ]
      },
      "requiredPriceRoundedUpToCent": {
       "type": [
        "null",
        "n
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pricing-math-fee-inclusive-price-calculator-a93df138/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pricing-math.x402tookit.com](https://www.zero.xyz/host/pricing-math.x402tookit.com/llms.txt)
