Have Tax Questions? Ask a Tax Expert for Answers ASAP
The only way to defer taxes - purchase another similar property as part of section 1031 exchange. Otherwise - you will recognize taxable gain.
That likely will be long term gain with reduced tax rate. The basis for inherited property is a fair market value of the property on the day the decedent died (or another day if selected by the executor of the estate).
Moreover - as the property is located in Kansas - that will be Kansas income and state tax return and state taxes may due.
You may not defer taxes from capital gain by transferring the gain into retirement fund.
But you may make retirement contribution regardless of the capital gain if you qualify. That will reduce your taxable income.
You may also consider installment sale - so your capital gain will be spread over several years and would reduce tax pressure.