Hello my friend and thank you for your question.
If you lived in your home for ten years and is your primary home, when you sell it then you will be able to exclude up to $500,000 in gain if you file Married Filing jointly.
If you sold it for $1million in gains you will be paying capital gains on the difference, assuming that you did not used part of your home as a busines or home office expense. The capital gains tax rate for Maffied Filing jointly will be as follows in 2023:
0% if taxable income is up to $89,250
15% if your taxable income is from $89,251 to $553,850
20% if your taxable income is over $553,850
You can get more information on capital gains tax rate at https://turbotax.intuit.com/tax-tips/investments-and-taxes/guide-to-short-term-vs-long-term-capital-...
You can see more details on Sale of your home on Publication 523 at https://www.irs.gov/pub/irs-pdf/p523.pdf
I hope this answered your question.
Thank you so much
Martha