# zaref.dev South African Crypto Tax Calculator

> zaref.dev South African Crypto Tax Calculator is a paid API for AI agents from zaref.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Calculates estimated South African tax liability on cryptocurrency gains, handling both revenue-nature and capital-nature profits, staking/mining/airdrop income, and FIFO batch matching.

## Facts

- Endpoint: GET https://zaref.dev/calc/crypto-tax?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zaref-dev-south-african-crypto-tax-calculator-d9ef6881
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z1BhoGKE9R56k62H4U7Ru

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 zaref-dev-south-african-crypto-tax-calculator-d9ef6881
```

Example prompt: Calculate my South African crypto tax — I have a capital gain of R150,000 and revenue-nature profit of R50,000 from trading, plus R20,000 from staking, and my other taxable income is R600,000. I'm 35 years old.

## When to prefer this

Use this endpoint when you need a quick, programmatic South African crypto tax estimate based on SARS rules — especially when the user has both capital and revenue-nature gains, staking/mining/airdrop income, or a list of buy/sell transactions needing FIFO matching. Prefer this over generic tax calculators when the jurisdiction is specifically South Africa and cryptocurrency asset classes are involved.

## Known failure modes

- Missing required numeric parameters returns an error or zero result
- Non-numeric values for gain fields cause parsing failures
- Unsupported classification value may be ignored or return default behaviour
- Very large transaction lists in the 'transactions' query param may be truncated or rejected
- Edge cases around the annual exclusion threshold may not reflect the latest SARS tables if not recently updated

## How this service works

South African crypto-tax calculator. Estimated SA tax on crypto asset gains: revenue-nature profits taxed at the marginal rate, capital-nature gains via CGT with the annual exclusion and 40% inclusion. Handles staking/mining/airdrop receipts and FIFO batch matching of a raw buy/sell transaction list. Computed from officially-sourced tables. Example: /calc/crypto-tax?capital_gain=150000&revenue_gain=50000&other_taxable_income=600000&age=35

## Output

Returns an estimated South African tax breakdown including tax on revenue-nature gains at the marginal rate, CGT on capital-nature gains after the annual exclusion and 40% inclusion rate, treatment of staking/mining/airdrop receipts, and FIFO-matched transaction gains/losses — all computed from officially-sourced SARS tables.

## 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",
     "properties": {
      "age": {
       "type": "string"
      },
      "capital_gain": {
       "type": "string"
      },
      "revenue_gain": {
       "type": "string"
      },
      "transactions": {
       "type": "string"
      },
      "mining_income": {
       "type": "string"
      },
      "airdrop_income": {
       "type": "string"
      },
      "classification": {
       "type": "string"
      },
      "staking_income": {
       "type": "string"
      },
      "other_taxable_income": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zaref-dev-south-african-crypto-tax-calculator-d9ef6881/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zaref.dev](https://www.zero.xyz/host/zaref.dev/llms.txt)
