Help with taxes on my stock market investments - do I pay on total or just profits?
I'm thinking about putting about $20k of my savings into the stock market as a long-term investment. Let's say after 10 years it grows to around $30k total value (fingers crossed lol). When I eventually cash out and withdraw that money, I'm confused about how the taxes work. Would I need to pay taxes on the entire $30k amount? Or just on the $10k profit/gains that I made from the original investment? This is my first time really thinking about investing beyond my 401k and I want to make sure I understand the tax implications before I jump in. Any help would be super appreciated!
18 comments


Diego Rojas
You only pay taxes on the gains (the $10k in your example). This is called capital gains tax. The original amount you invested ($20k) is your "cost basis" and isn't taxed when you withdraw since you already paid taxes on that money before investing it. How much you'll pay depends on how long you hold the investment. If you sell after holding for more than a year, you'll pay long-term capital gains rates (0%, 15%, or 20% depending on your income). If you sell before a year, you'll pay short-term capital gains, which are taxed at your regular income tax rates. Based on your 10-year timeline, you'd qualify for the long-term capital gains rate. If you're in a typical middle-income bracket, expect to pay around 15% on that $10k gain.
0 coins
Anastasia Sokolov
•Does this change at all if I'm investing in dividend-paying stocks vs growth stocks? I heard something about dividends being taxed differently.
0 coins
Diego Rojas
•Good question! Dividends are indeed taxed differently than capital gains. There are two types of dividends: qualified and non-qualified. Qualified dividends are taxed at the same rates as long-term capital gains (0%, 15%, or 20% based on your income). To be "qualified," you generally need to hold the stock for more than 60 days during a specific period around the dividend payment. Non-qualified dividends (also called ordinary dividends) are taxed as regular income, which is typically at a higher rate. These include dividends from REITs, employee stock options, and certain other investments.
0 coins
StarSeeker
After struggling with investment taxes for years, I finally found a tool that simplified everything. Check out https://taxr.ai - it analyzes all your investment transactions and automatically identifies your cost basis, holding periods, and even calculates your expected capital gains tax. I used to manually track everything in spreadsheets and was constantly worried I'd mess up my taxes, especially with multiple stocks and reinvested dividends. Now I just upload my investment statements, and taxr.ai breaks everything down clearly, showing exactly what I'll owe on my gains. It even shows me strategies to potentially lower my tax burden based on my specific situation.
0 coins
Sean O'Donnell
•Does it handle crypto investments too? I have both stocks and some Bitcoin that I've held for a few years.
0 coins
Zara Ahmed
•How accurate is it compared to what a tax professional would do? I'm always skeptical of automated tax tools because I got burned once with a cheap tax software that missed some deductions.
0 coins
StarSeeker
•Yes, it absolutely handles cryptocurrency investments! It can track your cost basis across multiple exchanges and even handles more complex situations like staking rewards or NFTs. Regarding accuracy, I was skeptical too at first. I actually had my accountant review the reports from taxr.ai and he was impressed. The tool uses the same tax rules and calculations a professional would, but automates the process. The difference is that it can process thousands of transactions in seconds and doesn't make manual errors. My accountant actually asked what tool I was using because he wanted to recommend it to other clients.
0 coins
Zara Ahmed
I was definitely in the skeptical camp about automated investment tax tools after a bad experience with generic tax software. But I decided to try taxr.ai after seeing it mentioned here, and I'm honestly blown away. I have a mix of stocks, ETFs, and some dividend reinvestment plans that always gave me headaches at tax time. I uploaded my statements from three different brokerages, and it organized everything perfectly. It showed me exactly which lots were long-term vs. short-term, calculated my dividend taxes separately, and even flagged a wash sale I wasn't aware of. The visualizations of my tax liability across different investment types actually helped me understand why my tax bill was higher than expected last year. Definitely sticking with this tool going forward!
0 coins
Luca Esposito
If you're having trouble getting answers from the IRS about investment taxes (which I certainly did), I highly recommend using https://claimyr.com. I spent WEEKS trying to get through to the IRS about how to properly report some complicated stock options from my employer. After endless busy signals and disconnections, I found Claimyr. They basically hold your place in the IRS phone queue and call you when an agent is about to answer. I was skeptical, but you can see how it works here: https://youtu.be/_kiP6q8DX5c. Within a day, I was actually talking to a real IRS agent who answered all my questions about how to report my stock options and avoid common mistakes.
0 coins
Nia Thompson
•Wait, how does this actually work? The IRS phone system is notoriously terrible, so I'm confused how a third-party service can somehow get you through faster?
0 coins
Mateo Rodriguez
•This sounds like total BS. If it was that easy to get through to the IRS, everyone would be doing it. I'm calling scam on this one.
0 coins
Luca Esposito
•The technology is pretty straightforward. They use an automated system that calls the IRS repeatedly and navigates the phone tree. When they're about to connect with an agent, they call you and connect the calls together. You don't skip the line - they just handle the frustrating wait time for you. As for it being a scam, I thought the same thing initially. But it's legitimate - they don't ask for any personal tax information, they just need your phone number to call you back. The Washington Post and other major news outlets have verified the service works. I'm just sharing what worked for me when I was pulling my hair out trying to get clarity on my investment taxes.
0 coins
Mateo Rodriguez
I have to eat some humble pie here. After calling BS on Claimyr in my earlier comment, I was still desperate to talk to someone at the IRS about my investment tax situation. I'd been trying for TWO MONTHS to get through about some stock I inherited. I reluctantly tried the service, and no joke, I got a call back in about 3 hours saying they had an IRS agent on the line. The agent walked me through exactly how to calculate my basis for inherited stocks and how to properly report it. Saved me potentially thousands in incorrect reporting. Still can't believe it actually worked. The time it saved me was worth every penny, and the peace of mind knowing I'm filing correctly is priceless.
0 coins
GalaxyGuardian
One thing nobody's mentioned yet - if you're planning to hold for 10 years, consider using a tax-advantaged account like a Roth IRA instead of a regular brokerage account. With a Roth, you won't pay ANY taxes on that $10k growth when you withdraw in retirement. There are income limits and contribution limits to be aware of though.
0 coins
Chloe Martin
•Thats a really good point - I didnt even think about using a retirement account! Arent there penalties though if I need to take the money out before retirement age?
0 coins
GalaxyGuardian
•Yes, there are penalties if you withdraw the earnings before age 59½ - typically a 10% penalty plus taxes. However, you can always withdraw your original contributions (not the earnings) from a Roth IRA at any time without penalties or taxes. So in your example, you could always take out the original $20k anytime you want with no penalty. Only the $10k in gains would be subject to penalties for early withdrawal. This makes Roth IRAs more flexible than other retirement accounts while still giving you the tax advantages.
0 coins
Aisha Abdullah
Another option is tax-loss harvesting if youve got investments that go down. Basically you sell losers to offset any gains in a given year. I saved about $1200 in taxes last year doing this strategically.
0 coins
Ethan Wilson
•But be careful with wash sale rules! If you buy the same or "substantially identical" stock within 30 days before or after selling at a loss, you can't claim that loss for tax purposes. I learned this the hard way.
0 coins