{"uid":"cap_6fxmEB09pL1Js9Y5lioP_","slug":"crypto-tax-calculator-ee0481c4","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/capital-gains?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["gains"],"properties":{"gains":{"type":"array"},"filingStatus":{"enum":["single","mfj"],"type":"string"},"taxableIncome":{"type":"number"}}},"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_w-ISeV5X6ARIuv7yNodwn","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 liability on cryptocurrency transactions using 2026 tax brackets, covering LTCG, STCG, and NIIT","exampleAgentPrompt":"Calculate my US capital gains tax on $50,000 of short-term crypto gains and $30,000 of long-term gains — I'm filing as single with $120,000 of taxable income, and I want to see LTCG, STCG, and NIIT broken out separately using 2026 brackets.","exampleUseCases":[{"title":"Year-end crypto tax estimation","prompt":"I sold some crypto this year — $15,000 in short-term gains and $40,000 in long-term gains. I'm married filing jointly with $180,000 in taxable income. Can you calculate my total capital gains tax bill for 2026, including any NIIT I might owe?"},{"title":"Tax-loss harvesting decision support","prompt":"I'm thinking about realizing $25,000 in long-term crypto gains before year end. I file as single and my taxable income is $95,000. What would my capital gains tax come out to under the 2026 brackets, so I can decide if it's worth it?"},{"title":"Portfolio rebalancing tax impact","prompt":"I need to rebalance my crypto portfolio and will have $10,000 short-term and $60,000 long-term gains. My filing status is married filing jointly and my taxable income is $300,000. Calculate my LTCG, STCG, and net investment income tax so I can plan around the cost."}],"resultDescription":"Returns a breakdown of the user's US capital gains tax liability including short-term capital gains tax (STCG, taxed as ordinary income), long-term capital gains tax (LTCG, using preferential 2026 bracket rates), and net investment income tax (NIIT, 3.8% surtax where applicable), along with total tax owed.","failureModes":["Missing required 'gains' array returns a 400 validation error","Invalid filing status enum value returns a validation error","Malformed gain entries in the array may cause computation errors or unexpected results","Payment failure (insufficient USDC balance) returns a 402 Payment Required before computation","Extreme or edge-case income values may produce unexpected bracket behavior"],"whenToPreferThis":"Choose this endpoint when you need precise, 2026-bracket US capital gains tax calculations on cryptocurrency transactions, specifically when you need LTCG, STCG, and NIIT broken out separately. It is purpose-built for crypto tax scenarios and supports both single and married-filing-jointly statuses. Prefer it over generic tax libraries or manual lookups when you want a pay-per-use, no-subscription calculation with up-to-date 2026 US tax brackets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:28:16.054Z","isFirstParty":false,"canonicalSlug":"crypto-tax-calculator-cafdddee"}