Get your taxes done using TurboTax

gain loss recognized on maturity.  

you may want to revoew reg 1.988-2

https://www.law.cornell.edu/cfr/text/26/1.988-2 

(a) (iii) example 1 if interest is added to principal