Margin interest may be deductible as investment interest. It is treated as an itemized deduction, subject to a net investment income limitation. Margin interest does not offset capital gains.
The length of time that an asset is owned and that generally determines long- or short-term capital gain treatment.