It depends on whether you qualify for the home sale exclusion. This exclusion lets you omit from gross income up to $250,000 of gain ($500,000 on a joint return), but only if you meet certain conditions:
Real property in which 80% or more of the gross income is from dwelling units. Under MACRS, depreciation is claimed over 27.5 years under the straight-line method.