“Cost basis” is probably the most important concept in crypto tax that nobody explains properly. It is the reason KoinX asks for your historical data. It is why your gains might look different on KoinX versus your exchange. And it is the foundation of every tax calculation.Documentation Index
Fetch the complete documentation index at: https://guides.koinx.com/llms.txt
Use this file to discover all available pages before exploring further.
What Is Cost Basis?
Cost basis is simply what you paid for your crypto. When you sell, your taxable gain is:- January: 0.5 BTC at Rs. 15,00,000 (cost: Rs. 7,50,000)
- March: 0.3 BTC at Rs. 18,00,000 (cost: Rs. 5,40,000)
- May: 0.2 BTC at Rs. 20,00,000 (cost: Rs. 4,00,000)
Accounting Methods Explained
KoinX supports four accounting methods. Each determines which purchase lot gets matched to your sale.FIFO (First-In, First-Out)
The default in KoinX and most jurisdictions. The oldest coins you bought are considered sold first. Using our example: Selling 0.4 BTC using FIFO:- 0.4 BTC from the January lot @ Rs. 15,00,000/BTC
- Cost basis = Rs. 7,50,000 x (0.4/0.5) = Rs. 6,00,000
- When older purchases were cheaper (higher basis reduces your gain)
- Most straightforward and widely accepted globally
- When recent purchases were more expensive and older lots were cheap, FIFO produces higher taxable gains
LIFO (Last-In, First-Out)
The most recently purchased coins are considered sold first. Using our example: Selling 0.4 BTC using LIFO:- 0.2 BTC from May @ Rs. 20,00,000 = Rs. 4,00,000
- 0.2 BTC from March @ Rs. 18,00,000 = Rs. 3,60,000
- Total cost basis: Rs. 7,60,000
- When recent purchases were more expensive
- Can reduce gains in a falling market
- When older purchases were expensive, you may miss using those higher cost lots
HIFO (Highest-In, First-Out)
The most expensive purchase lots are sold first, regardless of when they were acquired. Using our example: Selling 0.4 BTC using HIFO:- 0.2 BTC from May @ Rs. 20,00,000 = Rs. 4,00,000 (highest cost)
- 0.2 BTC from March @ Rs. 18,00,000 = Rs. 3,60,000 (next highest)
- Total cost basis: Rs. 7,60,000
- Minimises taxable gains in most scenarios
- Useful when purchase prices vary significantly
- Not accepted in every jurisdiction
- Requires accurate, complete transaction records
Average Cost
All purchase costs are averaged together. Every unit of the asset is treated as having the same cost basis. Using our example: Total cost = Rs. 16,90,000 for 1 BTC Average cost per BTC = Rs. 16,90,000 Selling 0.4 BTC: Cost basis = Rs. 16,90,000 x 0.4 = Rs. 6,76,000 When Average Cost works in your favour:- Simpler record-keeping
- Required or preferred in some jurisdictions
- Less flexibility for tax optimisation
- Cannot selectively use higher-cost lots
Comparing Methods: Same Sale, Different Tax
Selling 0.4 BTC for Rs. 9,00,000:| Method | Cost Basis | Gain | Tax (30% + 4% cess = 31.2%) |
|---|---|---|---|
| FIFO | Rs. 6,00,000 | Rs. 3,00,000 | Rs. 93,600 |
| LIFO | Rs. 7,60,000 | Rs. 1,40,000 | Rs. 43,680 |
| HIFO | Rs. 7,60,000 | Rs. 1,40,000 | Rs. 43,680 |
| Average Cost | Rs. 6,76,000 | Rs. 2,24,000 | Rs. 69,888 |
Which Method Should You Use?
| Situation | Worth Considering |
|---|---|
| Want simplicity and wide acceptance | FIFO |
| Bought recently at high prices | LIFO or HIFO |
| Want to minimise taxable gains | HIFO |
| Jurisdiction requires average cost | Average Cost |
| Unsure | FIFO |
Is FIFO Mandatory for India?
There is no explicit rule mandating FIFO for crypto in India. However, FIFO is the most commonly used approach, widely accepted by tax professionals, and the default method in KoinX. Unless advised otherwise by your CA or tax advisor, FIFO is generally considered the safest choice.Is It Legal to Change Accounting Methods?
Generally, you can choose any accounting method that is accepted in your jurisdiction. However:- Some jurisdictions mandate specific methods
- Maintaining consistency across years is strongly recommended
- Switching methods frequently complicates record-keeping
Can I Use Different Methods in Different Years?
Technically possible in some cases, but not recommended. Cost basis carries forward across years. Switching methods can create mismatches between years and makes records harder to reconcile. Best practice: choose one method and stick with it.How to Change Your Accounting Method in KoinX
Find Accounting Method

What happens when you change method
- All transactions are recalculated
- Different purchase lots are matched to sales
- Cost basis and gains change
- Newly generated reports reflect the updated method
Why KoinX Needs Your Historical Data
This is the most common source of confusion: “I am filing for FY 2024-25. Why does KoinX want my 2022 transactions?” The answer: cost basis carry-forward. If you bought crypto in 2022 and still hold it, that 2022 purchase price is your cost basis. When you sell in 2025, KoinX needs the original cost to calculate your gain correctly. Without historical data:- KoinX sees a sale but no corresponding purchase
- Cost basis defaults to zero
- Your gain is overstated or shows an error
- You see “Insufficient Quantity” warnings
- Every sale is matched to its purchase
- Accurate cost basis means accurate gains
- Clean reports with no warnings
Cost Basis for Different Transaction Types
| Transaction Type | Cost Basis |
|---|---|
| Regular purchase | Purchase price paid |
| Airdrops / Rewards | Fair market value at time of receipt (if treated as income) |
| Hard forks | Generally zero or fair market value at fork date (grey area in India) |
| Gifts received | Donor’s original cost basis if known, otherwise fair market value at receipt |
Frequently Asked Questions
How do I change my accounting method?
How do I change my accounting method?
Is it legal to change accounting methods?
Is it legal to change accounting methods?
Last year I used FIFO. Can I use LIFO this year?
Last year I used FIFO. Can I use LIFO this year?
What happens if I change accounting method?
What happens if I change accounting method?
Will changing accounting method affect past tax reports?
Will changing accounting method affect past tax reports?
Can I change accounting method after filing my ITR?
Can I change accounting method after filing my ITR?
Does cost basis get updated if I add historical data later?
Does cost basis get updated if I add historical data later?
Why does my cost basis show as zero for some transactions?
Why does my cost basis show as zero for some transactions?
What if I bought the same coin on multiple exchanges?
What if I bought the same coin on multiple exchanges?
