You may have a capital gain on the sale of land adjacent to your home. Whether or not a mortgage is involved does not impact gain or loss for federal income tax purposes. However, you may be able to use the home sale exclusion (which is up to $500,000, or $250,000 for singles) for gain on the vacant land adjacent to your home if the sale of the vacant land and the sale of your home occurred within 2 years of each other.
Debt secured by a principal residence or second home to the extent of the excess of fair market value over acquisition debt. An interest deduction is generally allowed for home equity debt up to $100,000 ($50,000 if married filing separately).