# Crypto Tax Calculator

> Crypto Tax Calculator is a paid API for AI agents from tax-api-production-eb93.up.railway.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-23).

Calculates US capital gains tax liability for cryptocurrency transactions using 2026 tax brackets, covering LTCG, STCG, and NIIT.

## Facts

- Endpoint: POST https://tax-api-production-eb93.up.railway.app/tax-report?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-tax-calculator-705daca4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aa5EflICANfUtGchIyjbM

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 crypto-tax-calculator-705daca4 -d '<json body>'
```

Example prompt: Calculate my 2026 US crypto capital gains tax — I'm filing as single, my taxable income is $120,000, and I have a long-term gain of $30,000 on Bitcoin and a short-term gain of $8,000 on Ethereum. Break out the LTCG, STCG, and NIIT.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use US crypto capital gains tax calculation with 2026 bracket accuracy, covering LTCG, STCG, and NIIT in a single call — ideal for agents handling tax planning, portfolio rebalancing, or year-end reporting without requiring a full tax software subscription.

## Known failure modes

- Missing required 'gains' array returns a 400 validation error
- Invalid filing status string may cause incorrect bracket lookup or error
- Extremely large gain arrays may cause timeout
- Payment not completed or insufficient USDC causes 402 Payment Required response
- Malformed gain entries (missing amount or holding period) may produce incorrect calculations

## How this service works

US capital gains tax calculation. 2026 brackets. LTCG, STCG, NIIT. Pay per calculation on Base.

## Output

Returns a structured tax report breaking down the tax owed by category: short-term capital gains (STCG) taxed as ordinary income, long-term capital gains (LTCG) at preferential 2026 bracket rates, and net investment income tax (NIIT) where applicable, along with the total tax liability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "gains"
 ],
 "properties": {
  "gains": {
   "type": "array"
  },
  "otherIncome": {
   "type": "number"
  },
  "filingStatus": {
   "type": "string"
  },
  "taxableIncome": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-tax-calculator-705daca4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tax-api-production-eb93.up.railway.app](https://www.zero.xyz/host/tax-api-production-eb93.up.railway.app/llms.txt)
