Under this section, only the qualified mortgage interest corresponding to the first $1,000,000 of loans from the two residences will be deductible. Therefore, if the loan amount is above $1,000,000, the interest deduction would be allocated so that only the interest related to the aggregate loan amounts of $1,000,000 would be deducted.
(26 USC § 163(h)(3)(B)(ii))