Typically, the custodial parent has the right to the deduction. This is normally discussed in divorce agreement negotiations. If agreed to in writing, the non-custodial parent may have the deduction.