Back to IRS

Jamal Carter

How to calculate capital gains on stocks — what does the IRS actually need from you?

Filed my 2025 taxes on extension back in October and I'm now in a situation I didn't fully think through when I sold some shares earlier this year. I had a brokerage account I'd been adding to for about six years, sold a chunk of it in March to cover some unexpected expenses, and I genuinely don't know if I did the reporting right. My 1099-B came from the brokerage but I wasn't sure how the IRS looks at the holding period, what counts as short-term vs long-year (long-term, sorry), and whether the basis my brokerage reported matches what the IRS expects to see. I reported it as best I could but now I'm second-guessing everything. Does the IRS verify what your brokerage already told them? And if the numbers don't match what I reported, do I get a notice or does it just get flagged somewhere in my return? Trying to understand what I might be looking at here before anything arrives in the mail.

My 2025 return was accepted back in the spring, but by September the IRS Online Account was showing a balance I didn't recognize — something that didn't line up with what I owed when I filed. Claimyr (claimyr.com) stayed on hold with 800-829-1040 while I went about my day, and when the representative picked up I asked about the balance owed for tax year 2025. She told me the account showed an adjustment that had been posted after my return was processed, and that a notice had been mailed to the address on file. I'd moved in August so I never got it — had to update my address right then on the call. Worth knowing that the IRS does receive your 1099-B data directly from your brokerage, so when what you report doesn't match what they have, that's usually what triggers a notice like the CP2000. Video on reaching a live IRS agent: https://youtu.be/_kiP6q8DX5c

0 coins

The address issue is exactly the kind of thing I wouldn't have thought of — I've been at the same place for years but good to know mismatches can cause notices to disappear. And the CP2000 thing is concerning me. Is that only for underreported income or could it also come up for a basis calculation error?

0 coins

The CP2000 covers situations where the income the IRS received from third parties doesn't match what showed up on the return. A basis error on its own might not trigger it the same way a missing 1099 would, but if the gross proceeds are off that's a different story.

0 coins

Okay so if the proceeds I reported match the 1099-B but the basis I used was wrong, that might not automatically cause a CP2000 — but the resulting gain or loss would still be wrong on my return. Sounds like I might need to look at a 1040-X.

0 coins

Went through something similar with restricted stock units vesting and selling in the same year — my W-2 already included part of the value as ordinary income, and then the 1099-B showed the full sale amount, and I had no idea how to reconcile those two without looking like I was double-reporting. Spent a lot of time on the IRS's site reading the Schedule D instructions. The form itself walks you through the short-term vs long-term split based on the date you acquired versus the date you sold, which is exactly what your brokerage should already have on the 1099-B.

0 coins

The RSU situation sounds even more complicated than mine. Did you end up filing as-is or did you need to amend anything?

0 coins

Filed as-is after a tax professional walked me through it. The 1099-B had the adjusted basis blank or zero, which is common with RSUs apparently, and I had to enter the correct basis manually on Schedule D. The IRS's instructions for Form 8949 were actually useful for that specific scenario.

0 coins

The 8949 is where the actual transaction detail goes — Schedule D just summarizes the totals from it. A lot of people skip 8949 and only fill in Schedule D which can cause the basis to look wrong on the IRS's end even if the math works out.

0 coins

Had no idea 8949 and Schedule D were separate — I'm going back to my return tonight to see which one my software actually used.

0 coins

I used to think the holding period started from when you bought the shares in a purchase plan or reinvestment, and I filed two years thinking that. It doesn't always work that way — for certain kinds of equity compensation the holding period for the capital gain part can start from a different date than the grant date, and the form instructions on the IRS's site are the clearest thing I found. I ended up asking a CPA after trying to figure it out myself because the intersection of employment income and capital gains on the same shares got complicated fast.

0 coins

The CPA route is probably where I'm headed at this point. I thought selling shares from a plain brokerage account would be straightforward but there are more moving parts than I expected.

0 coins

Even a plain brokerage account gets complicated when you bought the same stock at different prices over time and then sell a portion — the IRS wants to know which shares you sold, and if you don't specify your brokerage may default to a method you didn't intend.

0 coins

That specific identification vs FIFO thing tripped me up too. The brokerage's confirmation of which lot you sold is important to keep, because that's what determines the basis for each share. The IRS expects the numbers to trace back to that.

0 coins

Regardless of how the gain is calculated, the IRS will have your 1099-B figures already from the brokerage. When those numbers don't match what's on Schedule D, that's one of the common reasons a return gets flagged for a notice. If you think your numbers were off, amending sooner rather than later is generally the cleaner path than waiting for the IRS to notice first.

0 coins

How long does an amendment usually take? I filed the original return in October so I'm worried about adding more time onto an already late timeline.

0 coins

The IRS says amended returns take anywhere from 8 to 12 weeks to process, and sometimes up to 16 weeks. You can check the status of a 1040-X using the IRS's amended return tool — you need your Social Security number, date of birth and ZIP code to check it without signing in.

0 coins

Amended return times can run even longer than 16 weeks depending on backlog. I mailed mine in April and it took about five months before anything showed in the system. The online tool didn't even show it as received for the first three weeks.

0 coins

Does the IRS even look at every 1099-B transaction individually or do they just check the totals? I have like 40 trades from one year and I cannot imagine them verifying each one.

0 coins

The IRS matches at the summary level in their initial pass — gross proceeds from the 1099-B your brokerage files vs what appears on your return. The transaction detail on Form 8949 is there if they need to dig further, but the initial notice trigger is usually the aggregate amount.

0 coins

Okay that makes more sense. So as long as the total proceeds I reported match the 1099-B I'm probably not going to get a notice just because the individual rows don't line up perfectly?

0 coins

The proceeds need to match what the brokerage reported to the IRS. If the basis is different, that affects your gain or loss but the IRS won't necessarily know unless the resulting number on your return looks wrong relative to what they expected. That's when the CP2000 comes into play.

0 coins

I had no idea the basis mismatch could sneak through like that. I've been panicking thinking every single trade line was being cross-checked in real time.

0 coins

WAITED ON HOLD FOR LITERALLY TWO HOURS trying to ask a simple question about whether I needed to file a 1040-X for a basis error that my software caught after I already submitted. The representative I finally reached was helpful but getting to them was painful. For anyone with questions about their actual account the IRS Online Account at https://www.irs.gov/your-account shows any balance adjustments but it won't tell you why — for that you need a tax account transcript or an actual call.

0 coins

The wait time frustration is real. I ended up spending most of a morning just trying to reach someone about my own situation and the line dropped twice before I got through.

0 coins

Two dropped calls on top of a two hour wait would have broken me. Honestly the IRS Online Account handles more than I expected — I could see my transcripts and payment history without calling at all — but the moment you need to actually talk through something specific there's no substitute for a live person.

0 coins

The tax account transcript is the one that shows changes after filing, right? Not the return transcript — that just shows what you filed originally?

0 coins

Correct — a tax return transcript shows the original return as filed, and a tax account transcript shows any updates or adjustments made after. If the IRS has processed any changes from a CP2000 or an amendment, that's the one that would reflect it.

0 coins

My broker sent a corrected 1099-B in late April, after I'd already filed in February. I had no idea that could even happen and by then my return was already in. Had to decide whether to amend for a relatively small difference or just leave it and hope the IRS matched the original. My tax preparer said the IRS would likely match the corrected version since that's what the brokerage would send them, so I went ahead with the 1040-X.

0 coins

A corrected 1099-B after you've already filed sounds like a nightmare. I didn't know brokerages could do that — I'll be watching for any corrections on mine now.

0 coins

They can and do, especially if the brokerage updates its cost basis records or if there were corporate actions on a stock you held. My corrected one arrived in a plain envelope and I almost missed it.

0 coins

Corrected 1099s are more common than people expect. Brokerages have until a certain date to correct them and some wait until the last minute. If you file early and get a correction later, an amendment is usually the right move.

0 coins

Had an installment agreement set up after owing for tax year 2024, and I wanted to confirm the monthly amount and due date were still what I expected because I hadn't gotten anything confirming my setup in writing. Claimyr stayed on the IRS line while I was at work, and when I got on with the representative she confirmed the payment plan's monthly amount and the payment due date that was on the account. Everything matched what I'd set up online. Getting that confirmation mattered because I didn't want to miss a payment and default on the agreement.

0 coins

Missing a payment on an installment agreement is one of those things that can undo a lot of work. Good move verifying that directly.

0 coins

The IRS Online Account shows the plan details too but I wanted a person to confirm I was reading it right. The representative also mentioned the balance still accrues interest until it's paid in full, which I already knew but it was good to have confirmed.

0 coins

How did you get the installment agreement set up initially — was that all done online or did you have to call?

0 coins

Applied online through the IRS Online Account. It went through immediately and I got a confirmation the same day. The only reason I phoned at all was to double-check the details a few weeks later when I hadn't seen a written confirmation arrive yet.

0 coins

I used to assume that if you owe taxes from a capital gain you could just pay the extra amount along with your regular filing and that would be the end of it. What I didn't realize until I owed a significant amount one year is that the IRS can assess an underpayment penalty if you didn't pay enough through withholding or estimated tax payments during the year — the gain is treated as income when it happens, not when you file. Had to call to understand what had been assessed on my account.

0 coins

The estimated tax piece is something I definitely did not think about when I sold in March. I assumed filing and paying in October would cover it. Is the penalty something you can dispute?

0 coins

The penalty itself is based on when the income was received versus when taxes were paid, and it's calculated on the account separately from your regular balance. To dispute one you'd call the number at the top of whatever notice shows it, or write to the address on it. A penalty can be reduced for reasonable cause but no one can promise that outcome.

0 coins

The underpayment penalty thing catches a lot of people who sell stock mid-year. The notice that explains it usually comes a few months after you file, not at the same time as your refund or balance notice.

0 coins

Tried to get a wage and income transcript through Get Transcript to verify what the IRS had on file from my brokerage before I filed, and it showed the 1099-B data that the brokerage had reported. Really useful step if you want to confirm the IRS has the same numbers you're working from before you submit anything.

0 coins

Can you get that transcript before you've filed your return for the year? Or does it only show up after?

0 coins

The wage and income transcript reflects what third parties have reported to the IRS — employers, brokerages, banks — and it's available even before you file your own return for that year. Sometimes it takes a few months after the end of the year for all the data to populate, but by the time you're filing it should be there.

0 coins

The Get Transcript tool through the IRS Online Account is the fastest way — you can view it immediately after signing in. By mail takes 5 to 10 calendar days to arrive at the address the IRS has on file, so if you need it quickly the online version is the way to go.

0 coins

Sold some dividend reinvestment shares that I'd been accumulating for years without really tracking the basis on each reinvestment — every dividend that gets reinvested is technically a separate purchase at that day's price. By the time I sold I had hundreds of small lots and had no idea what my actual basis was. The IRS expects you to report the correct basis, and 'I didn't track it' isn't a recognized method.

0 coins

The dividend reinvestment basis problem is surprisingly common and brokerages vary a lot on how well they track it, especially for older accounts opened before the basis reporting requirements changed.

0 coins

My brokerage only had basis records going back about seven years and the shares I sold included reinvestments older than that. Had to request old statements directly from the brokerage and piece it together manually, which was not a fun afternoon.

0 coins

How did you ultimately report it if you couldn't reconstruct the full basis? Did you just estimate?

0 coins

My tax preparer used the records I could find for the documented lots and noted the basis as 'unknown' for the ones I couldn't verify — there's a specific way to handle that on Form 8949. The instructions on the IRS's site at https://www.irs.gov/ spell out the reporting codes for different basis situations.

0 coins

My 2025 return had been sitting at 'return received' in Where's My Refund for over two months after I filed on extension in October — no movement, no explanation. Claimyr sat on the line with 800-829-1040 while I handled other things, and once a representative picked up I asked about the return's status on the account. She confirmed the return had been received and was still being processed, and said a notice would be mailed if anything required my response. At that point I just had to wait, but at least I knew it wasn't lost.

0 coins

Two months at 'return received' after an October filing sounds about right for extension returns, from what I've read. They tend to process later in the queue than spring filings.

0 coins

That's what I figured, but seeing no movement at all made me anxious. Knowing the return was actually on the account and being processed was enough to let me stop checking every day.

0 coins

How long after that did it actually move? Still waiting on mine and in the same spot.

0 coins

Moved to 'refund approved' about six weeks after that call. The notice I'd been worried about never came, so the original return must have been fine.

0 coins

Learned the hard way that short-term and long-term gains are reported on separate rows of Schedule D. Filed one year lumping everything together and got a notice asking for clarification. The holding period — under a year for short-term, over a year for long-term — matters because the IRS taxes them differently, and they need to see that breakdown on the return.

0 coins

Mine were definitely mixed — some I held for over a year and some for only a few months. I need to go back and check whether my software separated them correctly.

0 coins

Your software should do it automatically based on the acquisition and sale dates from the 1099-B import. The place to check is Form 8949 — Part I is short-term and Part II is long-term. If they're all in one part that's a flag.

0 coins

The 1099-B import from the brokerage usually populates both parts correctly, but it's worth reviewing rather than just trusting the import. I've had brokerages send incorrect holding period codes before that the software just accepted without questioning.

0 coins

Worth clarifying something I see come up a lot — people mix up the tax return transcript and the tax account transcript and ask for the wrong one. If you filed a return and want to see what you filed, that's the return transcript. But if you want to see what's changed since you filed — payments, adjustments, anything from a notice — the account transcript is the one you want. The IRS Online Account gives you access to both.

0 coins

I asked for a return transcript thinking it would show my payment history and of course it didn't. Had to go back and get the account transcript separately. Good distinction to make clear.

0 coins

If I want to see whether my Schedule D data is what the IRS has on record, is that on the return transcript or the account transcript?

0 coins

The return transcript shows the original return as filed, so Schedule D data would be reflected there if the IRS has processed your return. The wage and income transcript is the other useful one — it shows what your brokerage reported directly to the IRS, which is what you'd compare against your own Schedule D.

0 coins

Went into this thinking I could handle stock sale reporting entirely on my own, and three hours into reading IRS publications I realized I needed help. Ended up working with a tax professional who knew the nuances around lot selection and wash sale rules — which are a whole separate complication if you sell at a loss and rebuy the same stock within 30 days. The IRS's disallowance of a loss in that situation is something a lot of people don't know to look for.

0 coins

Wash sale didn't even cross my mind. I didn't rebuy the same shares but I did buy some similar ones shortly after. How close does 'substantially identical' have to be for the IRS to treat it as a wash sale?

0 coins

That specific question is one to take to a tax professional or the IRS directly because it depends on the nature of the securities. The IRS's definition of substantially identical isn't spelled out in a simple checklist, and the instructions on Form 8949 point to Publication 550 for more detail. The IRS site has it.

0 coins

The wash sale rule is one of those things where the form instructions tell you there's a rule but don't tell you exactly how to apply it in every situation. A CPA who handles investment income regularly is the right person for that call.

0 coins

Phoned the IRS earlier this year about wages and withholding the IRS had on record for 2025, because the number showing in my wage and income transcript didn't match a corrected W-2 my employer issued in June. Claimyr waited on the line while I was on my lunch break, and when the representative answered I asked what wages and withholding were showing for the year. The representative read me the figures from the employer's filing — they still had the original W-2 amounts, not the corrected ones. She said to allow time for the corrected W-2 to be processed into their records before filing or amending.

0 coins

Planning to try that for my own transcript question — the wage and income transcript not updating after a correction is exactly the kind of thing that would throw off my numbers if I didn't check.

0 coins

The lag between an employer filing a corrected W-2 and the IRS updating their records is real. If you file an amendment using the corrected figures before the IRS has the matching data, the transcript won't reflect what you reported and it can look like a discrepancy from the IRS's side.

0 coins

That's exactly why I wanted to check the IRS's records before amending. Filed the amendment after the wage and income transcript updated and the numbers matched correctly from the start.

0 coins

Taxpayer Advocate Service is worth knowing about if this turns into an extended situation — if the IRS hasn't resolved a problem within a reasonable time or if there's financial hardship involved, TAS may be able to help. You'd reach them through the number on their site at https://www.taxpayeradvocate.irs.gov/ or with Form 911. They won't take every case but for something that's dragged on without resolution it's an option.

0 coins

How long does something usually need to have been unresolved before TAS will step in? I'm only a few months in so I'm not sure if I'm at that point yet.

0 coins

TAS looks at whether the normal IRS processing time has passed — generally more than 30 days beyond what the process normally takes, or a response deadline the IRS missed. For a recently filed extension return with no notice yet, you're likely not there. But if you get a notice with a deadline you can't meet or the situation creates genuine financial hardship, that changes the picture.

0 coins

TAS doesn't promise to take a case and they can't override the IRS's decisions, but having an advocate assigned has helped people I know navigate situations where their returns were stuck with no explanation for months.

0 coins

If the return has already been filed and you think the basis or the gain calculation was wrong, the cleaner option is usually to amend with a 1040-X rather than wait to see if the IRS sends a notice. A CP2000 puts you in a reactive position — you're responding to their version of events. Amending first means you're presenting your corrected numbers on your own terms.

0 coins

That framing makes sense. I've been in a wait-and-see mode but the idea of responding to a CP2000 with numbers that might still be wrong is not appealing.

0 coins

Amending doesn't prevent a notice from coming if the IRS has already started processing a discrepancy, but it can resolve things before they escalate. The 1040-X status tool lets you track it after you submit, and the IRS says to allow up to 16 weeks in some cases.

0 coins

Amending also creates a clear paper trail showing you caught the error yourself and corrected it, which matters if there's ever a question about intent. The IRS distinguishes between a mistake corrected and a mistake left in place.

0 coins

My experience going into a Taxpayer Assistance Center appointment over a different issue this year — not capital gains, just a notice that needed in-person verification — was that having every document organized before showing up made a huge difference. The representative reviewed everything I brought and confirmed the notice had been resolved on the account. If you end up needing an appointment you schedule through 844-545-5640 and bring your photo ID, the relevant notices and the return they reference.

0 coins

Good to know the TAC is an option for in-person help if things get complicated enough. I hadn't considered that route — I assumed everything had to be done by phone or mail.

0 coins

The TAC is by appointment only and they can't walk you through preparing a return, but for account questions tied to a specific notice or letter it can be more efficient than phone. Use the 'Find a Taxpayer Assistance Center office' tool on the IRS's site to find one near you.

0 coins

Arrived 20 minutes late to a TAC appointment once and they cancelled it on the spot — the cutoff is 15 minutes. Learned that the hard way and rescheduled. The appointment line is busy but patient.

0 coins

IRS AI

Expert Assistant
Secure