How do I access a worksheet regarding determining the amount to report as a capital gain, if any, in the sale of our home in 2025?

We sold our home and used some of the sales price to pay off the mortgage. How does this calculate in determining the amount of capital gain, if any, to report as the "adjusted basis".