2-weeks is the minimum notice you should give before quitting a job in the federal government. If your work can be easily reassigned then 2-weeks is probably sufficient. If you have a critical role or if your job is particularly difficult to replace, you should give a longer notice. Anywhere from 1 to 3 month notice may be appropriate. Although it is customary and professional, there is no rule or regulation that requires you to give advanced notice of resignation or retirement.