Is capital gain part of AGI?

I got $178K long term capital gain (LTCG) in 2023.  I got $66K short term capital loss carry forward from 2022.   I expected $40K from retirement income and dividends in 2023.

 

Having above and nothing more from tax activities perspectives, what's my AGI for 2023?  What rate would I be taxed on for my LTCG?  Since AGI affects my medicare premium, it's crucial for me to know ahead of time what my AGI looks like.  

 

Thank you,

Maureen