{"uid":"cap_6H9blpOvl7tqczqKuKPbo","slug":"crypto-tax-calculator-cafdddee","name":"Crypto Tax Calculator","description":"US capital gains tax calculation. 2026 brackets. LTCG, STCG, NIIT. Pay per calculation on Base.","url":"https://tax-api-production-eb93.up.railway.app/cost-basis?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["trades"],"properties":{"trades":{"type":"array"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E8krxyO20Rj5eg67_16FY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates US capital gains tax (LTCG, STCG, and NIIT) on cryptocurrency trades using 2026 tax brackets, paid per calculation on Base via x402.","exampleAgentPrompt":"Can you calculate the capital gains tax I owe on my crypto trades? I bought 1 BTC for $30,000 in January 2024 and sold it for $60,000 in February 2025, and also sold 2 ETH I bought at $1,500 each for $3,000 each last month — I want to know my LTCG, STCG, and NIIT using 2026 brackets.","exampleUseCases":[{"title":"Year-end crypto tax liability estimate","prompt":"I made several crypto trades this year — I sold 0.5 BTC bought at $20,000 for $55,000 (held over a year), and sold 10 ETH bought at $2,000 each for $3,200 each last week. Can you calculate my total capital gains tax including long-term, short-term, and net investment income tax using 2026 brackets?"},{"title":"DCA portfolio cost basis calculation","prompt":"I've been dollar-cost averaging into Ethereum all year with 12 separate purchases and I just sold my whole position. Here are all my buy and sell trades — can you calculate my cost basis and figure out what I owe in capital gains taxes under 2026 rules?"},{"title":"Tax-loss harvesting impact check","prompt":"I want to see how my realized crypto gains and losses net out for tax purposes. I have some winning trades and some losses I already took — can you run the numbers on all my trades and tell me my net LTCG and STCG tax liability including any NIIT I might owe?"}],"resultDescription":"Returns the computed US capital gains tax breakdown for the submitted trades, including short-term capital gains (STCG) taxed as ordinary income, long-term capital gains (LTCG) at preferential rates, and net investment income tax (NIIT) where applicable — all calculated against 2026 US tax brackets.","failureModes":["Missing or empty trades array returns validation error","Malformed trade objects (missing buy price, sell price, or dates) cause computation failure","Insufficient USDC balance or payment failure via x402 results in 402 Payment Required","Trades with ambiguous or missing holding period data may produce incorrect LTCG vs STCG classification","Unsupported asset types or missing cost basis data may return null or incomplete results"],"whenToPreferThis":"Choose this endpoint when you need automated, per-calculation US cryptocurrency capital gains tax computation using current 2026 bracket rates, specifically requiring LTCG/STCG/NIIT breakdown. Prefer this over generic tax APIs when working with crypto-specific trade histories and needing cost-basis-aware computation on Base with micropayment pricing at $0.05/call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:30:49.075Z","isFirstParty":false,"canonicalSlug":"crypto-tax-calculator-cafdddee"}