From some universities website:
“How long can international students stay in the USA after graduation?
Students holding F visas must leave the US within 60 days of the program end date specified on Form I-20, according to US immigration law. On the other hand, students with J and M visas must depart the United States within 30 days of the program end date specified on their Form I-20. However, if you want to stay longer in the United States, you can apply for a visa extension on the US Citizenship and Immigration Services (USCIS) website.
After graduation, F-1 visa holders are eligible for up to 12 months of optional practical training (OPT). That means you’ll be able to work for a year after finishing your studies. It is a temporary employment permit that allows students to obtain helpful experience in the relevant field of study.
On the other hand, after finishing their course of study, students with an M1 visa may only work in temporary positions for practical training. The job must be recommended for practical training and must be relevant to the course of study. It also can’t be training that they can get in their home nation.
Academic Training (AT) in a field similar to or related to their curriculum is available to J-1 students for up to 18 months following graduation. In addition, J-1 students with a Ph.D. can apply for an extra 18 months of AT in their field of study.”
“How long can international students stay in the USA after graduation?
Students holding F visas must leave the US within 60 days of the program end date specified on Form I-20, according to US immigration law. On the other hand, students with J and M visas must depart the United States within 30 days of the program end date specified on their Form I-20. However, if you want to stay longer in the United States, you can apply for a visa extension on the US Citizenship and Immigration Services (USCIS) website.
After graduation, F-1 visa holders are eligible for up to 12 months of optional practical training (OPT). That means you’ll be able to work for a year after finishing your studies. It is a temporary employment permit that allows students to obtain helpful experience in the relevant field of study.
On the other hand, after finishing their course of study, students with an M1 visa may only work in temporary positions for practical training. The job must be recommended for practical training and must be relevant to the course of study. It also can’t be training that they can get in their home nation.
Academic Training (AT) in a field similar to or related to their curriculum is available to J-1 students for up to 18 months following graduation. In addition, J-1 students with a Ph.D. can apply for an extra 18 months of AT in their field of study.”