How to fix cost basis in Koinly for transfers from Ledger to Coinbase

Trying to get my crypto taxes sorted and I'm stuck on something frustrating. I move coins from my Ledger hardware wallet to Coinbase pretty regularly, and Koinly keeps treating those transfers as taxable disposals — it's assigning a cost basis of zero to the coins when they land in Coinbase, so the whole value shows up as a gain. I know transfers between wallets you own aren't taxable events, but Koinly doesn't seem to be connecting the send on the Ledger side to the receive on the Coinbase side. I've tried marking them as transfers manually but the cost basis still looks wrong in the generated report. My concern is that if I export this to Form 8949, every one of those transfers will show up as a short-term gain with zero basis. How do I actually fix cost basis in Koinly for transfers from Ledger to Coinbase so the original acquisition cost follows the coins correctly?

42 comments

Had the exact same mess last year. The root cause in Koinly is almost always that it can't auto-match the send and receive because the timestamps or amounts don't align closely enough — small fee differences especially. Go to the Transfers tab in Koinly, find the unmatched transactions, and manually pair each send from your Ledger wallet with the corresponding receive in your Coinbase wallet. Once they're linked as a transfer, Koinly carries the original cost basis forward instead of treating it as a disposal.

Maya B.

Author

That's where I am now — the timestamps are off by several hours because Ledger records the broadcast time and Coinbase records the confirmation time. Does Koinly let you match them even with that kind of gap?

I uploaded my Koinly CSV export and my Ledger live transaction history to taxr.ai and it flagged every transaction where the basis had been reset to zero and listed which pairs weren't matched. That gave me a clear hit list to fix in Koinly before regenerating the report. For the matching itself though: in Koinly you can widen the transfer matching window in settings, and you can also force-match by clicking the send, hitting 'match transfer,' and selecting the receive manually. The original acquisition date and cost carry over once it's matched.

Maya B.

Author

Did it catch basis issues that weren't just the transfer mismatches? I'm wondering if my cost basis is off in other places too.

It did — it also spotted some transactions where I'd imported the same exchange CSV twice so there were duplicate entries inflating both proceeds and basis. Worth checking your transaction count against your exchange history.

Worth clarifying why this matters so much: for the 2025 Form 8949, digital asset transactions go in the new boxes G through L, not the old C or F boxes. Short-term in G, H, or I; long-term in J, K, or L. If Koinly has reset basis to zero on a transfer, every coin you eventually sell shows an inflated gain, and that flows directly into the wrong amount on 8949 column (d) and (e). Fixing it in Koinly before you export is way easier than trying to make adjustments on the form itself.

I didn't know about the new G through L boxes. I've been using C and F for all my crypto. Is that going to be a problem for prior year returns too or just 2025 forward?

The new boxes are specifically on the 2025 Form 8949 per the form instructions — for prior years you would have used the boxes available then. If you're amending an older return you'd use the form for that year. But going forward, digital assets have their own boxes and should not use C or F.

The other thing that bites people: even when Koinly correctly marks something as a transfer, check whether it's pulling the right cost lot. If you're using FIFO in Koinly but your exchange used a different method, the basis numbers won't match what's on any 1099-DA your exchange issues. The IRS wants you to use the proceeds shown on the 1099-DA in column (d) of Form 8949, so if your exchange sends one, reconcile against that.

Maya B.

Author

My exchange didn't send a 1099-DA for last year. Does that change how I report or just what boxes I use?

If there's no 1099-DA you're still required to report — the digital assets page on irs.gov is clear that you have to report all disposals. Without a 1099-DA you use box I or L (no Form 1099-DA received) depending on short- or long-term holding period. You still have to get the basis right yourself.

One thing that helped me: export your Ledger transaction history as a CSV, then export your Coinbase history, and open them side by side before touching Koinly at all. Find each withdrawal on the Ledger side and confirm the matching deposit on the Coinbase side by TXID. If the TXID matches, you have proof it's the same on-chain transaction and Koinly should let you match them manually without any argument.

The TXID approach is solid. I did this and found two transactions where I had actually imported a CSV with the wrong date range in Koinly, so the receive wasn't even in the system. Had to re-import the correct range.

Maya B.

Author

This is the most practical suggestion so far honestly. Going to pull both exports tonight and go through them line by line.

My situation was messier because I had coins that had moved through three wallets before landing on Coinbase, so the basis chain was broken in multiple places. I gave Taxr my transaction history exports and it traced each coin's movement, identified where the chain broke, and drafted a summary showing the original acquisition cost and date that I could use to manually set the basis in Koinly. That made the actual correction in the software a lot faster because I wasn't guessing. The holding period question matters too — the IRS counts your holding period from the day after acquisition, with the disposal date included, so a coin you bought and moved around but held more than a year gets long-term treatment regardless of how many wallet hops it made.

Maya B.

Author

Three wallets is rough. Mine is usually just Ledger to Coinbase but I did have a brief stop through MetaMask on a few ETH transactions. I'll check if that broke anything.

The holding period rule is key and people get it wrong. The hops between wallets you own don't restart the clock — the clock started when you first acquired the asset and ends on the trade date you sold.

What cost basis method are you using in Koinly? FIFO, HIFO, specific identification? It changes which lot gets assigned to a sale and therefore what basis follows through the transfers. You can change it in Koinly's settings but it recalculates everything so do it before you finalize the transfers fix, not after.

Maya B.

Author

I've been using FIFO mostly by default. I haven't thought much about whether a different method would be better — is there guidance on which one the IRS requires for crypto?

There's no single method mandated for digital assets — Publication 550 and the digital assets page at irs.gov cover the rules. The key is you have to use it consistently and be able to identify specific lots if you claim specific ID. Worth reading those before locking in a method, especially if you have a mix of short and long-term lots.

Koinly left me with duplicate gains on about a dozen transactions last filing season because it created a 'missing cost basis' entry for each receive that wasn't matched. Those phantom entries showed up on my 8949 as separate disposals. When you fix the transfers, also check your transaction list for any auto-generated cost basis entries Koinly may have inserted — those need to be deleted once the real match is in place.

Maya B.

Author

I hadn't thought to check for those. Where do they usually show up in Koinly — is there a filter for them?

Something that caught me off guard: even after I fixed all the transfer matches in Koinly, the report still had a few wrong basis numbers because I'd used Coinbase's own tax form to report those transactions in a prior year with a different basis number. If you've already filed and the basis you used then is different from what Koinly now shows, you may need to think about whether prior returns need amending rather than just fixing the current year.

Maya B.

Author

That's a scenario I haven't considered. If the prior year basis was wrong and I already filed, what's the right way to handle that?

Generally an amended return for the prior year would be the path, but if the numbers are significant or you have multiple years involved it's worth talking to an enrolled agent or CPA who handles crypto. The adjustments can get complicated across years.

Practically speaking: once you've fixed the matches in Koinly, regenerate the tax report and download the Form 8949 CSV. Open it and spot-check a few of the previously-broken transfers. Confirm column (e) now shows the original acquisition cost, not zero. If any still show zero, that transfer didn't get fully matched — go back and redo it. Don't export to your tax software until every one of those checks out.

Maya B.

Author

This is a good checklist approach. I'll do that before I import anything into my actual return.

When I had a bunch of unmatched transfers I dropped my Koinly export and my hardware wallet CSV into Taxr and had it compare the two. It flagged 11 transactions where the amounts were slightly off because of network fees being subtracted differently on each side, and showed me the exact difference on each one so I could decide whether to adjust in Koinly. Having that side-by-side comparison saved me a couple hours of manual matching. The fee handling is legitimately the trickiest part — when you send from Ledger the fee comes out of the sending amount, so the receive on Coinbase is slightly less than what Koinly logged as the send.

The fee discrepancy is exactly why auto-matching fails. Koinly's matching algorithm expects amounts to be nearly identical, so even a small fee difference pushes the transaction out of the match window.

Maya B.

Author

So when I manually match them in Koinly, do I need to adjust the amount on one side to account for the fee, or does Koinly handle that automatically once I force-match?

Once you force-match Koinly treats the fee as a transaction cost on the send side and doesn't require the amounts to equal out exactly. The basis that follows through is the original acquisition cost, not adjusted down by the transfer fee.

To the original question about what this looks like on Form 8949 if you don't fix it: a transfer with zero basis reported as a disposal would have full proceeds in column (d) and zero in column (e), generating a gain equal to the entire value of the coins at time of transfer. Multiply that by however many transfers you did and you can see why fixing this in Koinly before export is so important. The IRS digital assets page makes clear that wallet-to-wallet transfers between accounts you own are not taxable events, but your 8949 would show otherwise if the software doesn't know the wallets are yours.

This is what I was afraid had happened on a return I filed two years ago. I never connected my Ledger as a wallet in whatever software I used. How do I even figure out if past returns have this problem?

Adding your Ledger as a wallet in Koinly using the public address (xpub for Bitcoin wallets) rather than a CSV import makes future transfers auto-match much more reliably. With xpub connected, Koinly sees the full on-chain history and can link sends to receives by TXID automatically. For Ethereum addresses you just add the wallet address directly.

Maya B.

Author

I've been doing CSV imports for Ledger this whole time. Switching to xpub sync sounds much cleaner — does it pull historical transactions too or only going forward?

It pulls the full on-chain history for that address, so yes, historical too. Just make sure you don't then also have overlapping CSV imports for the same period or you'll get duplicates — same issue a few others mentioned above.

Worth noting for anyone who's already exported a broken 8949 to their tax software and filed: if the gain from those zero-basis transfers was included in your return as income, you overpaid. That's the kind of error that could warrant an amended return. Not saying you should definitely do it, but if the numbers are large it's worth having a CPA who handles crypto look at the magnitude before you decide.

Maya B.

Author

How large is 'large enough to amend'? Is there a threshold?

There's no official threshold — it's a judgment call based on the refund you'd get back weighed against the time and cost of amending. A CPA or enrolled agent can help you run that number pretty quickly.

One thing people don't always realize: if you eventually sell those coins and your basis is still wrong in Koinly, you're not just overstating the gain on the transfer — you're also going to either overstate or understate the gain on the actual sale, depending on which lot Koinly assigns. The two errors can compound across multiple tax years. Fixing it now before any sales are reported is cleaner than trying to untangle it after.

Maya B.

Author

That's actually the scariest part of this whole thing for me. I did sell some of those coins this year so the basis error on the transfers directly affects the sale gains I'm about to report.

Came back to update: I ended up connecting my Ledger via xpub like someone above mentioned, deleted all my old Ledger CSV imports for the same addresses, and let Koinly resync. The unmatched transfer list dropped from about 40 transactions to 3. The remaining 3 were ones where I had actually sent to an external address I don't own, so those were correctly showing as disposals. Moral of the story — if you're managing a Ledger in Koinly, xpub sync is the right way to do it.