Generally, 5 years as a lawful permanent resident, or 3 years if married to a U.S. citizen.