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!
26 comments


Grace Johnson
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
Aurora St.Pierre
•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
Grace Johnson
•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
Jayden Reed
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
Nora Brooks
•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
Eli Wang
•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
Jayden Reed
•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
Eli Wang
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
Cassandra Moon
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
Zane Hernandez
•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
Genevieve Cavalier
•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
Cassandra Moon
•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
Genevieve Cavalier
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
Ethan Scott
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
Lola Perez
•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
Ethan Scott
•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
Nathaniel Stewart
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
Grace Johnson
•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
Darcy Moore
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
Aria Khan
•Great question about short-term vs long-term gains! You're absolutely right that short-term capital gains are taxed as ordinary income. So in your situation, your $45k ordinary income and $25k short-term gains would be combined for a total of $70k in ordinary income (subject to regular income tax brackets after deductions). Then your $60k in long-term capital gains would "stack" on top of that $70k base when determining which capital gains tax bracket applies. This means your long-term gains would be evaluated starting from the $70k income level, not from zero. So yes, those short-term gains will definitely push your long-term gains into higher brackets than if you only had ordinary income as your base. It's worth running the numbers both ways to see the impact - the difference between 0% and 15% capital gains rates can be substantial on $60k!
0 coins
Ravi Malhotra
This is exactly the kind of tax situation that trips up so many people! I went through something very similar last year with a large inheritance that included both stocks and some cash. One thing I learned the hard way is to also consider the Net Investment Income Tax (NIIT) if your modified adjusted gross income exceeds certain thresholds. For married filing jointly, there's an additional 3.8% tax on investment income (including capital gains) once your MAGI hits $250k. In your case with $135k total income, you're well under that threshold, but it's something to keep in mind for future years. Also, since you mentioned these are inherited stocks, make sure you're using the stepped-up basis correctly when calculating your actual capital gains. The cost basis should be the fair market value on the date of inheritance, not what the original owner paid. This can make a huge difference in how much you actually owe in capital gains tax! Have you considered whether it might make sense to realize some capital losses this year to offset part of those gains? Even though most of your gains will be in the 0% bracket based on the calculations above, tax-loss harvesting could still be beneficial for future years.
0 coins
NeonNinja
•This is really helpful information about the stepped-up basis! I hadn't fully considered that aspect. Since these were inherited stocks, you're absolutely right that I should be using the fair market value at the time of inheritance as my cost basis, not what was originally paid for them. That could significantly reduce the actual capital gains I owe tax on. I should probably gather the documentation showing the values on the date of inheritance to make sure I'm calculating this correctly. The point about tax-loss harvesting is interesting too. Even if most of my gains end up in the 0% bracket this year, having some losses carried forward could be valuable for future years when our income might be higher. Thanks for bringing up these additional considerations - there are definitely more moving pieces to this than I initially realized!
0 coins
Savannah Vin
•Just to add another consideration - if you're planning to sell more investments in future years, you might want to think about timing those sales strategically. Since you're currently in a relatively low income year where most of your capital gains qualify for the 0% rate, this could be an optimal time to realize gains rather than waiting. On the flip side, if you expect your income to be even lower in future years (maybe due to retirement or other life changes), it might make sense to hold off on some sales. The key is projecting your income over the next few years and trying to keep as much as possible in that 0% capital gains bracket. Also worth noting - if you have any capital loss carryforwards from previous years, those would offset your current gains dollar-for-dollar before applying the favorable capital gains rates. Might be worth checking if you have any losses carried forward that you forgot about!
0 coins
Lorenzo McCormick
This thread has been incredibly helpful for understanding the tax implications! I'm in a somewhat similar situation and wanted to share something that might benefit others here. I recently discovered that there are some nuances with state tax treatment that can significantly impact your overall tax bill, especially if you're in a high-tax state. While the federal calculations discussed here are spot-on, many states don't give preferential treatment to capital gains - they tax them as ordinary income at your marginal state tax rate. For example, if you're in California, New York, or New Jersey, you could end up paying 6-13% state tax on those capital gains even if you pay 0% federal tax. This can completely change your tax planning strategy. Also, for those dealing with inherited assets like the original poster, don't forget about potential state inheritance or estate taxes that might apply depending on which state the deceased lived in and where you live now. Some states have much lower exemption thresholds than the federal estate tax. One last tip: if you're doing any charitable giving this year, consider donating some of those appreciated stocks directly instead of cash. You can deduct the full fair market value and avoid paying capital gains tax on the appreciation entirely. It's a win-win that can be especially powerful when you're in a year with significant gains like this!
0 coins
Henry Delgado
•This is such a great point about state taxes that I think gets overlooked too often! I'm actually in New Jersey and got hit with exactly this situation last year. Even though most of my capital gains qualified for the 0% federal rate, I still owed about 6.37% to the state on the full amount. The charitable giving strategy you mentioned is brilliant - I wish I had known about that option earlier. For anyone considering this, make sure the charity can actually accept stock donations and handle the paperwork properly. Some smaller organizations aren't set up for it, but most major charities and donor-advised funds make it pretty straightforward. One thing I'd add is to also consider the timing of when you actually transfer the stocks vs when the charity sells them, especially if you're close to year-end. The tax benefits apply in the year you make the donation, not necessarily when the charity sells the shares.
0 coins
Noah huntAce420
As someone who recently navigated a similar tax situation with inherited assets, I wanted to add a few practical tips that might help with implementation: First, make sure you have proper documentation for the stepped-up basis that others mentioned. You'll need either a formal appraisal from the date of death or brokerage statements showing values on that specific date. The IRS can be particular about this documentation, and having it organized upfront will save you headaches later. Second, if you're using tax software, double-check how it handles the "stacking" calculation. Some of the basic packages don't always correctly calculate the interaction between ordinary income and capital gains brackets. I ended up having to manually verify the calculations because my software initially got it wrong. Also consider the timing of when you actually realize these gains. If you haven't sold the stocks yet, you might want to think about spreading the sales across December and January to potentially optimize your tax situation across two years. Even a few days can make a difference if it helps you stay within the 0% capital gains bracket. Finally, don't forget about estimated tax payments if this creates a significant tax liability. The IRS expects quarterly payments if you'll owe more than $1,000, and there can be penalties for underpayment even if you get a refund when you file. Based on the calculations in this thread, you should be in good shape, but it's worth double-checking the safe harbor rules for your specific situation.
0 coins