< Back to IRS

Lauren Wood

How are capital gains taxes calculated when selling stocks?

Hey everyone, I've been investing in the stock market for about 3 years now, and I'm planning to sell some of my positions soon. I've never actually sold stocks before that weren't in my retirement accounts, so I'm pretty confused about how capital gains taxes work. I bought about $4,500 worth of tech stocks back in early 2022, and they're now worth around $7,200. I also have some dividend-paying stocks I bought for $2,800 last year that are now worth about $3,100. I've been getting quarterly dividends of about $45. If I sell everything, how do I figure out what I'll owe in capital gains tax? Does it matter that I've held some stocks longer than others? And do those small dividends I've been getting affect anything tax-wise? I'm in the 22% tax bracket from my regular job if that matters. Sorry if these are basic questions, but I really want to understand before I make any moves. Thanks!

Ellie Lopez

•

The length of time you've held your stocks is super important for determining capital gains tax. Based on what you've shared: For your tech stocks bought in early 2022 and now worth $7,200, since you've held them for more than a year, they qualify for long-term capital gains tax rates. You'll pay either 0%, 15%, or 20% depending on your total income, but most likely 15% if you're in the 22% ordinary income bracket. Your gain would be $2,700 ($7,200 - $4,500). For your dividend stocks bought last year, if you sell them before you've held them for at least a year, you'll pay short-term capital gains tax at your ordinary income rate (so 22%). Your gain would be $300 ($3,100 - $2,800). Those quarterly dividends ($45) are considered ordinary dividend income and are typically taxed at your regular income tax rate unless they're qualified dividends, which are taxed at the lower long-term capital gains rates. When you sell, your brokerage will send you a Form 1099-B in early 2026 showing your proceeds and hopefully your cost basis too, making tax reporting easier.

0 coins

Does wash sale rule apply here too? I sold some stocks at a loss last year and bought similar ones within 30 days and it really messed up my taxes.

0 coins

Lauren Wood

•

Thanks so much for the detailed explanation! So if I'm understanding right, I'd pay about 15% on the $2,700 gain from my tech stocks (around $405) and 22% on the $300 gain from my dividend stocks (about $66)? Does the broker automatically calculate my cost basis or do I need to keep my own records of what I originally paid?

0 coins

Ellie Lopez

•

The wash sale rule only applies when you sell investments at a loss and then buy substantially identical securities within 30 days before or after the sale. Since OP is selling at a gain, they don't need to worry about this rule right now. You've got it exactly right on the tax calculations! Most brokers today do track your cost basis and will report it on your 1099-B. This became mandatory for stocks purchased after 2011. However, it's always good practice to keep your own records as a backup. Sometimes there can be adjustments needed if you've reinvested dividends or made multiple purchases of the same stock at different prices.

0 coins

Paige Cantoni

•

I was in a similar situation last year and was totally confused about capital gains until I found taxr.ai (https://taxr.ai). I had sold stocks from different purchase dates and couldn't figure out my gains correctly. I uploaded my brokerage statements to taxr.ai and it automatically identified all my stock transactions, separated them into long-term and short-term gains, and even flagged some wash sales I hadn't caught. It explained exactly how my capital gains would be taxed and even estimated what I'd owe based on my tax bracket. The tool showed me how to handle stocks I'd purchased in chunks at different times too, which was super helpful since I'd been buying the same company stocks incrementally.

0 coins

Kylo Ren

•

Does taxr.ai handle crypto transactions too? My tax situation is kinda messy with both stocks and some crypto trades.

0 coins

I'm skeptical about uploading my financial documents to some random website. How secure is it? Do they store your brokerage statements?

0 coins

Paige Cantoni

•

Yes, taxr.ai does handle cryptocurrency transactions! It can process various crypto exchange statements and even handles complex situations like staking rewards, mining income, and DeFi transactions. It separates everything into the right tax categories. Regarding security, I had the same concerns initially. They use bank-level encryption and don't permanently store your documents - they're analyzed and then deleted from their servers. They also have a privacy policy explaining they don't share your data with third parties. You can even use their document analysis without creating an account if you're really concerned.

0 coins

Kylo Ren

•

Just wanted to update after trying taxr.ai for my mixed stock and crypto portfolio. It actually worked surprisingly well! I uploaded statements from my brokerage and two crypto exchanges, and it organized everything correctly - even some weird DeFi transactions I wasn't sure how to report. What I found most helpful was how it separated my gains into short and long-term categories automatically. The tax explanation was in plain English too, not accountant-speak. It identified some losses I could use to offset gains that I would have missed otherwise. Definitely saved me from making some expensive mistakes on my taxes!

0 coins

Jason Brewer

•

If you need to talk to the IRS about any capital gains questions, I highly recommend Claimyr (https://claimyr.com). Last year I had a mess with incorrect cost basis reporting from my broker and needed clarification directly from the IRS. I spent days trying to get through to them myself - always got disconnected or had to hang up after being on hold for hours. Then I found Claimyr and watched their demo (https://youtu.be/_kiP6q8DX5c) and decided to try it. Claimyr got me a callback from the IRS in about 45 minutes when I had been trying unsuccessfully for days. The IRS agent helped clear up my capital gains reporting questions and confirmed I was calculating the adjusted basis correctly. Saved me from potentially claiming incorrect gains on my tax return.

0 coins

How does this actually work? Do they have some special connection to the IRS or something? I've been trying to reach someone about my amended return for weeks.

0 coins

Sounds too good to be true honestly. I've called the IRS dozens of times and NEVER get through. No way some website can magically make them call you back when they don't even answer their phones.

0 coins

Jason Brewer

•

It's not a special connection - they use a combination of automation and timing algorithms. They basically call the IRS repeatedly using optimal timing patterns based on historical data about when call volumes are lowest. When they get through, they request a callback for you specifically. It's like having someone continuously redial for you instead of you having to do it yourself. I was definitely skeptical too! I had spent almost 3 hours on hold one day before getting disconnected. What convinced me was watching people's real experiences in their video. It doesn't work instantaneously - my callback took about 45 minutes, but that's WAY better than the days I wasted trying on my own. They can't control how helpful the IRS agent will be once you're connected, but at least you get to actually speak with someone.

0 coins

Alright I have to admit I was wrong about Claimyr. After my skeptical comment I decided to try it as a last resort for a capital gains reporting issue that's been hanging over my head for months. I was 100% sure it was a scam, but I tried it yesterday afternoon. Got a callback from an actual IRS agent in about an hour. The agent walked me through exactly how to report a special situation with inherited stocks and their stepped-up basis. Turns out I was calculating my capital gains completely wrong and would have significantly overpaid. I've literally never been able to reach a human at the IRS before this despite countless attempts. Still shocked it actually worked.

0 coins

Liam Cortez

•

Don't forget about state taxes on your capital gains! Everyone always focuses on federal but depending on your state, you might owe state taxes too. I'm in California and was surprised by how much extra I had to pay on my stock sales last year.

0 coins

Lauren Wood

•

Good point - I'm in Minnesota. Does anyone know how MN handles capital gains taxes? Are they taxed differently than regular income at the state level?

0 coins

Liam Cortez

•

Minnesota taxes capital gains as regular income, unlike the federal government which gives preferential rates to long-term gains. So you'll pay your normal Minnesota income tax rate on all your capital gains regardless of how long you held the investments. Minnesota's income tax rates range from 5.35% to 9.85% depending on your income bracket. Given your regular 22% federal bracket, you're probably looking at the middle Minnesota brackets (6.8% or 7.85%). There's no separate capital gains rate structure at the state level.

0 coins

Savannah Vin

•

Some advice: if you know you're going to sell stocks soon, look at your overall tax situation first. I sold some stocks in December thinking I was being smart, but it pushed me into a higher tax bracket and I ended up paying way more than if I'd waited till January.

0 coins

Mason Stone

•

This is super important! Tax-loss harvesting saved me thousands last year. If you have any investments at a loss, you might want to sell those at the same time to offset some of your gains.

0 coins

Savannah Vin

•

That's a great point about tax-loss harvesting. Just remember the IRS limits capital loss deductions against ordinary income to $3,000 per year. However, you can use capital losses to offset unlimited capital gains. Any unused losses can be carried forward to future tax years.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,087 users helped today