2 hours prior to flight.
It depends. International flights need more time, probably at least 2 hours. Domestic flights need a minimum of 45 minutes if you're checking bags. The fact that you asked this indicates you're not a frequent traveller, so you should allow extra time to get thru check-in and security.
Thanks! Your answer is awaiting moderation.