Back to IRS

Aurora St.Pierre

Help me understand how federal ordinary income and capital gain taxes work for married filing jointly

Hey tax folks, I need some help figuring out how taxes work for our situation. My wife and I are filing jointly with approximately $135k total income - about $52k in ordinary income and around $83k in long-term capital gains from selling some inherited stocks. I know the standard deduction for married filing jointly is roughly $28k for 2025. So for our ordinary income, would we be taxed on $52k - $28k = $24k at the 10% and 12% brackets? Where I'm really confused is how the capital gains get taxed. Are our long-term capital gains taxed based on our total income of $135k (putting us in the 15% capital gains bracket)? Or are they taxed based on just the $83k amount (which might keep us in the 0% bracket)? So would our total tax bill be around $2.4k for ordinary income, or would we also owe something like $12.5k on the capital gains? I'm trying to plan ahead and the difference is huge! Thanks for any help!

The way tax brackets work for ordinary income vs. capital gains can definitely be confusing! Let me break this down for you: For your ordinary income: Yes, you'd subtract your standard deduction ($28k) from your ordinary income ($52k), leaving $24k of taxable ordinary income. This would be taxed at 10% for the first $22,000 (for 2025 MFJ) which is $2,200, and then 12% on the remaining $2,000, which is $240. So about $2,440 total for ordinary income tax. For capital gains: The key thing to understand is that capital gains tax brackets are based on your TOTAL taxable income, not just the capital gains portion. So after applying your standard deduction, your total taxable income is $24k (ordinary) + $83k (LTCG) = $107k. The 0% LTCG rate applies up to $89,250 (projected for 2025 MFJ). So the first $89,250 - $24,000 = $65,250 of your capital gains would be taxed at 0%. The remaining $83k - $65,250 = $17,750 would be taxed at 15%, which is about $2,663. So your total federal tax would be approximately $5,103 ($2,440 ordinary income tax + $2,663 capital gains tax).

0 coins

Thanks for that clear explanation! So if I'm understanding correctly, my ordinary income fills up the lower part of our total income bracket first, and then the capital gains "stack" on top of that for determining which capital gains tax bracket applies? So we'd pay nothing on most of our capital gains (the part that fits in the 0% bracket), but the portion that spills over into the 15% bracket gets taxed at that higher rate?

0 coins

That's exactly right! Your ordinary income (minus standard deduction) always "fills the bucket" first, and then your capital gains stack on top. Yes, you'd pay 0% on the capital gains that fit within the 0% bracket threshold (after your ordinary income is already accounted for). Only the amount that spills over into the 15% bracket gets taxed at that higher rate. This approach is often called "stacking" and it's why understanding your overall income picture is so important for capital gains planning.

0 coins

I was in almost exactly this situation last year and found a really helpful tool at https://taxr.ai that helped me understand how my capital gains would be taxed. I was super confused about the stacking rules, especially since I had both ordinary income and sold some investments. The site analyzed my previous tax returns and showed me exactly how the different types of income would be taxed based on my specific situation. It walked me through capital gains thresholds and showed me visualizations of how ordinary income and capital gains interact. Saved me from potentially making a huge mistake with timing my stock sales.

0 coins

Did it also help with state taxes? I'm in California and get absolutely destroyed on state taxes whenever I have capital gains. Does it show you both federal and state calculations?

0 coins

How accurate was it compared to what you actually ended up paying? I've tried other calculators before and they were way off because they didn't account for all the little details.

0 coins

It definitely included state tax calculations for me (I'm in New York). The state-level analysis was super helpful because my state handles capital gains differently than the federal government. I imagine it would work for California too since that's such a big state. As for accuracy, it was within about $50 of my actual tax bill. The difference was just because of some small dividend payments that came in later that I hadn't included in my estimates. What impressed me most was that it flagged a mistake in how I was calculating my cost basis on some inherited stocks, which would have caused issues with the IRS later.

0 coins

Just wanted to update after trying taxr.ai that the previous commenter recommended. It was actually really helpful for my situation! I had a mix of income sources this year (regular job, side gig income, and sold some stocks), and it showed me exactly how each type of income affects my overall tax situation. The "tax bracket visualization" feature was eye-opening - I could literally see how my capital gains stacked on top of my ordinary income. What I found most useful was the "what-if" scenario planning where I could test different approaches to selling investments. Turns out I was about to make a $3,800 tax mistake by selling everything at once rather than splitting across two tax years. Definitely worth checking out if you're dealing with capital gains.

0 coins

For anyone still struggling to get clear answers about their tax situation, I had a really frustrating time trying to get through to the IRS myself. After being on hold for over 2 hours multiple times, I found this service called Claimyr (https://claimyr.com) that got me connected to an actual IRS agent in under 20 minutes. I was skeptical at first, but you can see how it works in this demo: https://youtu.be/_kiP6q8DX5c The IRS agent I spoke with walked me through exactly how my capital gains would be calculated with my specific income situation. They confirmed everything about the "stacking" approach that others mentioned here and gave me guidance on some tax-loss harvesting questions I had. Saved me tons of stress trying to figure out if I was calculating everything correctly.

0 coins

Wait, how does this actually work? Is this some kind of priority line to the IRS or something? I thought everyone had to wait in the same queue.

0 coins

Yeah right. There's no way this actually works. The IRS is a disaster with their phone systems. I've called TWELVE times this year and never got through. If this actually worked the way you claim, everyone would be using it.

0 coins

It's not a priority line - they use an automated system that navigates the IRS phone tree and waits on hold for you. When they reach a human, you get a call back to connect with the agent. It's basically like having someone wait on hold so you don't have to. I was just as skeptical as you. I tried calling the IRS for three weeks straight without success. With Claimyr, I got a call back in about 15 minutes and was connected directly to an agent who was already aware of my specific tax question. The agent confirmed all the capital gains stacking rules others mentioned and helped me understand some specific details about my situation.

0 coins

Alright, I have to eat crow here. After my skeptical comment, I decided to try Claimyr out of pure frustration after my 13th failed attempt to reach the IRS myself. I honestly can't believe it worked. Got a call back in about 20 minutes, and spoke with an IRS agent who walked me through my capital gains questions. Turns out I had been calculating everything wrong for years - I didn't understand the proper way to account for carried forward losses against current gains. The agent explained that I had been using an outdated form and pointed me to the correct resources. Probably saved me from a potential audit. I'm still shocked this service actually delivered what it promised. Definitely using this for all my IRS questions going forward.

0 coins

Quick tip for everyone trying to understand capital gains tax: I created a simple spreadsheet that helps visualize the "stacking" concept people are discussing here. Column A: List your ordinary income Column B: Subtract standard deduction Column C: This is your taxable ordinary income Column D: List capital gains tax brackets (0%, 15%, 20%) Column E: The income thresholds for each bracket Column F: Calculate how much of your capital gains fall into each bracket It really helps to see it mapped out visually rather than trying to do the math in your head. Happy to share the template if anyone's interested.

0 coins

I'd love to see your spreadsheet template! Could you share a link or something? I'm more of a visual learner and have been struggling to understand these concepts just from reading.

0 coins

Sure thing! I don't think I can post a direct link here, but I've uploaded it as a public template on Google Sheets. If you search for "Capital Gains Tax Stacking Calculator - MFJ 2025" you should find it. I've also added a bonus tab that shows the effect of timing your capital gains sales across multiple tax years, which can sometimes save thousands in taxes. The key is understanding your current marginal tax rate and trying to keep as much of your gains in the 0% bracket as possible by splitting sales across different tax years when it makes sense.

0 coins

Does anyone know if qualified dividends are treated the same way as long-term capital gains for tax purposes? I have about $15k in dividend income and wondering if it also "stacks" on top of ordinary income.

0 coins

Yes, qualified dividends are treated exactly the same as long-term capital gains for tax purposes! They get the preferential tax rates (0%, 15%, or 20% depending on your income) and they also "stack" on top of your ordinary income in the same way. So if you have $50k ordinary income (after deductions) and $15k in qualified dividends, you'd calculate it the same way as the original poster's capital gains example - your dividends would be taxed based on where they fall after your ordinary income is accounted for.

0 coins

This is such a helpful thread! I'm in a similar situation but with a twist - we also have some short-term capital gains mixed in with our long-term gains. Does anyone know how short-term capital gains fit into this "stacking" concept? From what I understand, short-term gains are taxed as ordinary income, so would they be added to our regular income first before the long-term gains get stacked on top? Or do all capital gains (short and long-term) get treated together? We're looking at about $45k ordinary income, $25k short-term gains, and $60k long-term gains. Trying to figure out if those short-term gains will push our long-term gains into a higher tax bracket. The difference could be significant for our tax planning!

0 coins

IRS AI

Expert Assistant
Secure