This "rent vs. sell" calculator was built for homeowners with at least $300K of equity.
The decision turns on 6 variables; the one most people skip is depreciation recapture ($40K–$120K of unbudgeted tax).
Keep vs. Sell Rental Property Calculator Investor edition
Work through the steps on the left; the results on the right recalculate as you type. Both paths are taxed at the same endpoint so the comparison is apples to apples. Every figure below recalculates as you type.
Method: Sale proceeds and taxes follow IRS Publication 527 (depreciation allowed or allowable), Publication 551 (adjusted basis), IRC §1(h) (unrecaptured §1250 gain at up to 25%, long-term gains stacked on other income), §1411 (NIIT on the lesser of net investment income or MAGI over the threshold), and §121. Rental cash flow is taxed yearly on NOI less interest less depreciation; losses are suspended unless you can use them. Both paths are valued after tax at the same horizon. This is a planning model, not tax advice. Confirm with your CPA before acting.