Capital Gains (Cost Basis)
We purchased a home as residential and 4-5 years later built our permanent home, then turned the prev home to rental prop. We sold the rental 2021. Are we correct to calculate cost basis: Cost of home (minus land) at time of rental + improvements after transfer + mortgage balance at time of transfer. This is the cost of basis.