Best cost basis calculation software for a messy brokerage history?

My situation is a disaster and I'm hoping someone can point me toward cost basis calculation software that can actually handle it. I have shares of the same stock across three brokers going back about nine years, some were gifts, some I bought, a few lots were inherited, and I had a string of wash sale losses in 2022 that I never fully untangled. When I try to reconcile everything for Form 8949 the per-share numbers never match what the 1099-B says. I've tried building my own spreadsheet but the wash sale adjustments keep cascading in ways I can't follow. I need something that can import transaction history, apply the right holding-period rules, flag wash sales, and spit out numbers I can actually trust on Schedule D. Any experience with dedicated tools versus just using what your broker gives you?

39 comments

Form 8949 really exposes how bad broker cost basis tracking gets once you move shares around. The core problem is that brokers only track wash sales within the same account and same CUSIP. Cross-account wash sales are your problem to find, not theirs. Dedicated cost basis software like Gainskeeper, Maxit, or TradeLog is designed for exactly this — you import CSVs from every broker and it recalculates across all accounts. The wash sale rule runs 30 days before and after the sale date, so the software needs your full transaction calendar, not just one account's view.

Maya N.

Author

That's the piece I was missing. I assumed the 1099-B caught everything but of course each broker only sees its own account. So the disallowed losses the brokers reported might actually be understated?

Yes, exactly. If you sold at a loss in one account and bought the same stock in another within that 30-day window, neither broker flags it. The disallowed loss and the basis bump to the replacement shares both have to be computed manually or with software that sees all accounts at once.

Publication 551 is where I'd start reading before trusting any software output. The basis rules differ depending on how you got the shares — purchased, gifted, or inherited — and software has to know which is which or it will apply the wrong starting basis. For inherited shares the starting basis is generally the fair market value at the date of death. For gifted shares it depends on whether you're computing gain or loss. If you haven't coded each lot with its acquisition method the software is just guessing.

Maya N.

Author

I do have records for most of the lots but the gifted ones are the messiest — I don't know the donor's adjusted basis for two of them.

For those two you'll need to go back to whoever gave them to you and ask what they paid and when. Without the donor's adjusted basis you can't know your gain basis, and you can't know your loss basis either. No software can manufacture that number.

Schedule D line 1a and line 8a let you skip Form 8949 for covered transactions with no adjustments, which is a nice shortcut, but the moment you have wash sale codes, inherited lots, or gifted shares every affected lot has to go through Form 8949 with the right code in column (f) and any adjustment in column (g). Software that outputs a completed Form 8949 with column codes is more useful than one that just gives you a gain/loss summary.

Maya N.

Author

Does any software actually output a file that maps directly to the 8949 columns? That would save a ton of manual entry.

TradeLog does it. TurboTax Premier can import from some brokers directly. The issue is always whether the import maps acquisition dates and methods correctly, so you still need to spot-check a few lots against your actual confirms.

I uploaded my nine years of transaction history to taxr.ai and it went through each lot, matched the 1099-B proceeds to my records, and produced a worksheet showing exactly which lots had wash sale carry-ins that my broker had missed across accounts. I could see the column (g) adjustments laid out before I touched Form 8949. Really cut down on the reconciliation time. The inherited and gifted lots flagged separately so I knew which ones still needed outside documentation before I could finalize basis.

Maya N.

Author

Did it handle the multi-year wash sale cascade correctly? That's the part my spreadsheet always breaks on.

Yes — it tracked the deferred loss attaching to the replacement shares and then carried that forward when those shares were later sold or caught another wash sale. It listed each step in order so I could follow the chain.

One thing people get wrong with wash sales: the disallowed loss doesn't disappear, it adds to the basis of the replacement shares. So if the software is just zeroing out the loss without bumping the replacement lot's basis, your future gains will be overstated when you eventually sell those shares. Check that the tool you use handles both sides of the entry.

This. I've seen people import a corrected 8949 from software and not realize the replacement lot basis was still wrong in their brokerage account. When they sold those shares years later the broker reported the wrong basis on the next 1099-B.

Maya N.

Author

So I should verify the replacement lot basis in my brokerage account after I compute the correct number, and update it if the broker has it wrong?

Yes. Most brokers let you edit cost basis for covered securities under certain conditions. You'd enter the adjusted basis and the acquisition date so the next 1099-B reflects it correctly.

for the inherited lots specifically — did the estate file a Form 706? because Publication 551 says where the estate had to file 706, certain beneficiaries must use the estate tax value reported on Schedule A of Form 8971, not just the date-of-death FMV you find on a statement. if no 706 was filed then date-of-death FMV is generally correct but you should still document where you got that value

Maya N.

Author

No Form 706 as far as I know — the estate was below the threshold. So date-of-death FMV it is, which I do have from the estate attorney's paperwork.

The holding period question matters as much as the basis. For securities traded on an established market, your holding period starts the day after the trade date you bought and ends on the trade date you sold — not the settlement date. And inherited shares are automatically long-term no matter when you received them or sell them. Some cost basis software doesn't apply the inherited-long-term rule automatically, so double-check how it classifies those lots before you finalize Part I versus Part II on Form 8949.

Maya N.

Author

Good catch. My inherited shares are in Part I in the software output right now. That's definitely wrong.

Yes, move them to Part II. Inherited property goes in Part II regardless of how long you personally held it — the instructions for Form 8949 and Publication 550 both confirm this.

wash sale code for Form 8949 is W in column (f), and the disallowed amount goes in column (g) as a positive number to reduce the loss. your broker's 1099-B box 1g should have the disallowed amount for covered same-CUSIP same-account transactions. for anything cross-account that the broker didn't catch, you calculate it yourself and enter it the same way

I'd actually be cautious about fully trusting any software without manually tracing at least a sample of complicated lots from your original confirms through to the 8949 output. I've seen software get the first wash sale right and then lose track of the adjusted basis on the replacement lot when that lot hits a second wash sale. Test a few of the most tangled chains by hand before you rely on the full output.

Maya N.

Author

That's fair. I'll pick the two or three messiest chains and trace them manually as a sanity check before I file.

Form 3115 isn't something most people think about with cost basis, but if you've been using an incorrect accounting method consistently for years — like applying average cost to shares that don't qualify for it — a method change might need to go through that form. Worth knowing before you assume you can just restate everything. I had Taxr read through my own transaction history and it flagged which lots I had been treating inconsistently and in what years, so I knew whether the fix was a current-year adjustment or something that needed more attention.

Maya N.

Author

I hadn't thought about an accounting method issue at all. I think I've just been using whatever the broker defaulted to, which was FIFO.

FIFO is fine as a method, the problem comes if you switch methods mid-stream without documenting it or if the broker used one method and you reported another. Consistency matters and software that tracks your method election by account will catch that kind of mismatch.

irs.gov/publications/p550 is the place to read the actual wash sale rule before you commit to any software's interpretation. the rule applies not just to the same account but also to purchases by your spouse or a corporation you control, and to acquisitions in an IRA or Roth IRA — most cost basis software does not ask you about those situations, which means they can miss wash sales entirely

Maya N.

Author

I do have an IRA at one of these brokers. I didn't realize purchases inside the IRA could trigger a wash sale on taxable account losses.

Yes and it's worse than a regular wash sale — the disallowed loss in that case doesn't get added to the IRA's basis. The loss is just gone. Publication 550 covers it. Most software won't catch this because it doesn't have visibility into your IRA transactions.

If the nine years of history is long enough that some early lots might have errors that propagate forward, it may be worth having an enrolled agent or CPA who specializes in investment taxation review the full picture, especially with the gifted lots where you can't get the donor's basis. Some errors at the lot level compound over years and cost basis software can only be as good as the input you give it.

I showed Taxr the 1099-B from my broker alongside my own spreadsheet for a year where I had multiple wash sale chains, and it compared them column by column, identified where the broker's box 1g figure didn't match what my records implied, and listed the specific lots where the basis carry-forward had drifted. That list became my starting point for fixing the input before I ran anything through cost basis calculation software. Saved me from just automating the same errors.

Maya N.

Author

That's a smarter way to use it — clean the input data first rather than trusting the software output blindly.

Exactly. Garbage in, garbage out applies especially here. Once my lot-level data was clean the software output actually matched Schedule D the first time.

Short-term versus long-term split matters a lot at the Schedule D level. Part I on Form 8949 flows to Schedule D line 1b or 2 or 3 depending on which box you checked (basis reported to the IRS, basis not reported, or no 1099-B), and Part II flows to lines 8b, 9 or 10. If your software outputs a combined gain/loss number without the short/long split you'll still have to sort that yourself before you can fill in Schedule D correctly.

Maya N.

Author

My current spreadsheet does split them but it's the basis numbers feeding into that split that I don't trust.

One thing that hasn't come up: if your capital losses exceed your capital gains after all this reconciliation, the deductible loss against other income is capped. Check Topic 409 on irs.gov for the limit and the carryover worksheet — it depends on your filing status. The carryover is figured using the Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions.

Maya N.

Author

Good reminder. I'm expecting a net loss this year so the carryover calculation will matter. I'll check the Schedule D instructions for the worksheet.

To pull everything back to your original question: the software is only a tool, not the answer by itself. You need clean input data organized by lot with acquisition method, date, and correct starting basis. Once that is right, something like TradeLog or Gainskeeper will produce Form 8949-ready output with the right column codes. The inherited lots go in Part II automatically, wash sale codes go in column (f), and basis goes in column (e) with any basis correction entered as an adjustment amount in column (g). Spot-check against your 1099-B box 1g before you finalize.