Investors & landlords

I see. If I sell now I will definitely have capital gains and therefore I will definitely get taxes. My biggest concern is having to pay more in taxes than what I actually gained. I am wondering if this is even possible.