I sold my farm in 2017. Do i have to pay taxes on the capital gains from the sale

I sold my farm in KY for a profit.  Do I have to pay Federal Capital gains taxes?