There is no fixed period that you need to be married before applying for a green card. The crucial factor is the legitimacy of the marriage. Once a legitimate marriage to a U.S. citizen is established, an application for a green card can be obtained immediately.