Deductions & credits

If you are using the cash method of accounting, you deduct expenses in the tax year in which they are paid.

 

See https://www.irs.gov/publications/p538#en_US_201809_publink1000270638