In general, a corporation is formed under state law by the filing of articles of incorporation with the state. The state must generally date-stamp the articles before they are effective. You may wish to consult the law of the state in which the organization is incorporated.

Note that for a corporation to qualify under section 501(c)(3) of the Code, its charter or articles of incorporation must contain certain language. Publication 557PDF contains suggested language.

Application process