See this FAQ https://ttlc.intuit.com/community/agi/help/how-do-i-find-last-year-s-agi/01/25947
for a 2018 1040 form, you will find the AGI on line 7