Hi ASTJW,
The emphasis is the purpose of the loan, not how the loan is secured.
The capital element is not deductible.
To the extent the loan is used for the rental business, then the loan interest and any loan arrangement fees are allowed as a deduction.
Note that from tax year 2017/18, the tax relief that landlords of residential properties get for finance costs is gradually being restricted to the basic rate of income tax. You will need to calculate your tax relief for finance costs for residential properties differently.
The amount of tax you pay will stay the same unless your total income (without a deduction for the finance costs) exceeds the higher or additional rate threshold.
For guidance, please see:-
Tax relief for residential landlords: how it's worked out
Thank you.