Selling a rental property

After 23 years of owning a rental property, I sold it this past year. I assumed I was going to pay Capital gains on the sale of it. Instead, TurboTax is listing it as income and I am getting walloped at a high tax bracket. Is this correct? I thought I would just pay the 20% Capital gains on it.