how long do you have to stay married to keep your green card?
In fact, you have to remain married up until you actually get your U.S. citizenship, and you have to be living with your spouse three years before filing your N-400 application to qualify on this early basis. However, you may still be eligible to file Form N-400 on the basis of five years as a permanent resident.