Question about accrued interest receivable on debt security
I had a quick question about recognizing accrued interest as interest income. My book had the following example problem: Acquired $100,000 par value of 10-year bonds at 90 plus accrued interest of $2,500. Purchase of the bonds: Investments - Held-to-Maturity 90,000 Accrued Interest Receivable 2,500 Cash 92,500 Interest received of $5,000 Cash $5,000 Accrued Interest Receivable 2,500 Interest Income 2,500 My question is why are we only recognizing $2,500 of income when we received $5,000? Maybe I'm just not understanding what accrued interest is. Was the accrued interest earned in a previous period and we're now just getting cash for it? So the income we're recognizing in the second entry is actually the interest earned in this period?