Deductions & credits

it seems that non of the exceptions work for me. I’m selling my house to move into a farm about 20 min away. That’s the only reason for selling my house. I guess the only way to get out of capital gains tax is lower my taxable income some how.