Do I have to buy before year end to deduct this year?
Yes, and the property must also be in service that year. Closing is not enough if it is not ready and available to rent.
Learn more: Read: lookback studies and Form 3115
Source: IRS Publication 527
General information, not tax advice. Tax law changes, and the right answer for your return depends on your facts.