Yes, use the "step up in basis" valuation for your cost basis. If you have lived on the farm for 2 out of the past 5 years as your primary residence then you may be able to exclude much more. Check out AIS Tax and Financial, LLC on Facebook if you want anymore info. Happy gains!!