It depends on how much money you've earned. You have to work a minimum of 10 years. You get credits based on how much you made. The amount varies, but for about every $1300 you earn you get one credit towards your social security. Each year you get 4 credits max. After 40 credits you can claim it. Even if you change jobs or stop working your credit remains.