About this tool
Crypto sales trigger capital gains tax. Cost basis = what you paid; proceeds = what you sold for. The IRS allows FIFO (default), LIFO, HIFO, and specific identification. Long-term (held over 1 year) qualifies for lower 0/15/20% rates.
How it works
Enter total amount bought, average buy price, amount sold, sell price, and holding period. The calculator returns gain/loss and tax classification.
How to use the Crypto Cost Basis Calculator
The Crypto Cost Basis Calculator is a browser-based tool that runs entirely on your device. Inputs you enter never reach a server - all calculations happen client-side in JavaScript. This means:
- Privacy: nothing is logged, sent, or stored by 3Tej. Inputs disappear when you close the tab.
- Speed: results update as you type. No network round trip.
- Offline use: once the page is cached, it works without internet.
- No signup: no account, no email, no rate limits.
Step by step
- Enter your inputs in the form above. Each field is labeled with its unit (currency, percent, kg, etc.) and the expected range.
- Read the result as it updates. The number reflects the formula commonly accepted in Crypto Cost Basis-related calculations.
- Adjust to see sensitivity: change one input at a time and watch how the output moves. This is the fastest way to understand which variable matters most.
- Copy or screenshot the result for later reference. The page state persists for the session if your browser allows it.
When you would use this
- Quick estimates: when you need a number now and don't want to open a spreadsheet.
- Sensitivity analysis: testing how a result changes as inputs vary, before committing to a real-world decision.
- Comparison: running the same calculation with different inputs to compare options side by side.
- Learning: building intuition for how the underlying math behaves.
- Documentation: capturing a snapshot of inputs and outputs at a point in time.
The formula explained
This calculator uses the following formula:
basis = sold_amount × avg_buy_price; gain = proceeds - basis
The reason this formula works is rooted in the underlying physics, finance, or biology of the problem. Behind every calculator is a published, peer-reviewed equation or a widely accepted convention. We do not invent formulas; we apply standard ones from textbooks, government tables, professional bodies, and academic literature.
If you are curious about the math, the simplest way to verify is to plug in two known numbers and compare against a known result. The calculator should match published examples to within rounding precision.
Frequently asked questions
FIFO vs HIFO?
FIFO: oldest tax lot first. HIFO: highest cost basis first (minimizes gain). Must specify in records.
Wash sale on crypto?
Currently no - crypto isn't a 'security' under IRS rules. Sell at loss, rebuy immediately is allowed (so far).
State crypto tax?
Most states tax crypto same as federal. WA has separate flat 7% on long-term gains > $250K.
Lost / stolen crypto?
Theft loss: deductible if declared. Lost wallet (forgotten password): only deductible at sale time when assets fail to be retrieved.
Is the Crypto Cost Basis Calculator accurate?
The Crypto Cost Basis Calculator applies the standard formula for crypto cost basis. Accuracy is limited only by your input precision. For decisions with material consequences, use the result as a starting point and verify with a qualified professional or the relevant official source.
Is the Crypto Cost Basis Calculator free?
Yes. 100% free, no signup, no payment, no API key. The site is funded by display ads that appear around the tool but not inside the calculation flow.
Are my inputs saved?
No. Inputs stay in your browser tab. Closing the tab discards them. The site uses Google Analytics for traffic measurement (anonymized) but does not see what you type into the form.
Can I use the Crypto Cost Basis Calculator on my phone?
Yes. The tool is responsive and tested on iOS Safari, Android Chrome, and major desktop browsers. Touch targets meet Apple's 44pt and Google's 48dp minimum guidance.
How do I report a bug or suggest improvement to the Crypto Cost Basis Calculator?
Email hi@3tej.com with the URL of this page and a description of what you saw vs expected. We typically respond within 72 hours and update calculators when rules or formulas change.
How accurate is the Crypto Cost Basis Calculator?
It applies the standard formula. Accuracy is limited only by your input precision. For decisions with material consequences (taxes, medical, legal, structural), use the result as a starting point and verify with a qualified professional in the relevant field.
Is the Crypto Cost Basis Calculator free to use?
Yes. 100% free, no signup, no payment, no API key. The site is funded by display ads around the tool but not inside the calculation flow.
Are my inputs saved anywhere?
No. All inputs stay in your browser tab. Closing the tab discards them. The site uses Google Analytics for traffic measurement (anonymized) but the analytics never see what you type into the form.
Does the Crypto Cost Basis Calculator work offline?
Yes. Once the page has loaded, it works without internet. The calculation runs in JavaScript on your device.
Can I share results from the Crypto Cost Basis Calculator?
Take a screenshot or copy the output. The page doesn't generate shareable URLs for specific calculations - inputs stay in your browser only.
Why are the results different from another crypto cost basis tool?
Most likely: different formula assumptions, different default values, different rounding rules, or different applicable rates. Check the methodology if both tools document it. Both can be valid for different scenarios.
