# Saylor Innovations Profit Margin & Markup Calculator

> Saylor Innovations Profit Margin & Markup Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Calculates profit margin percent, markup percent, and profit amount from cost and price inputs, or computes the selling price needed to achieve a target margin.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/calc/margin?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-profit-margin-markup-calculator-9f24a070
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iqfCjVA8WkwbYEg3yS2Bm

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 saylor-innovations-profit-margin-markup-calculator-9f24a070
```

Example prompt: If I buy a product for $24.50 and sell it for $39.99, what's my profit margin percent, markup percent, and actual profit?

## When to prefer this

Choose this endpoint when you need a quick, reliable server-side calculation of profit margin, markup percentage, and profit from cost/price inputs, or need to back-calculate a price from a target margin — especially in agentic workflows where you want consistent, timestamped results without implementing the math yourself. Prefer this over generic calculators when you need structured JSON output with both margin and markup simultaneously.

## Known failure modes

- Missing required 'cost' or 'price' query parameters returns an error
- Non-numeric values for cost or price result in a validation error
- Zero cost value may cause division-by-zero errors for markup calculation
- Negative values may produce unexpected or null results for markup_percent

## How this service works

Profit margin and markup calculator - margin percent, markup percent and profit from cost and price, or the price for a target margin

## Output

Returns a JSON object containing: margin_percent (gross margin as a percentage), markup_percent (markup as a percentage of cost, may be null), profit (dollar profit), cost, price, mode (which calculation mode was used), and checked_at (UTC timestamp of the computation).

## 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": [
      "cost",
      "price"
     ],
     "properties": {
      "cost": {
       "type": "string",
       "description": "Unit cost"
      },
      "price": {
       "type": "string",
       "description": "Selling price (or give margin_percent)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "profit",
      "margin_percent"
     ],
     "properties": {
      "cost": {
       "type": "number"
      },
      "mode": {
       "type": "string",
       "description": "Mode used"
      },
      "price": {
       "type": "number",
       "description": "Price"
      },
      "profit": {
       "type": "number"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "margin_percent": {
       "type": "number",
       "description": "Margin, as a percentage"
      },
      "markup_percent": {
       "type": [
        "number",
        "null"
       ],
       "description": "Markup, as a percentage"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-profit-margin-markup-calculator-9f24a070/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
