Question: how many years do you have to work before retirement?
Answer: Everyone born in 1929 or later needs 40 credits to be eligible for Social Security retirement benefits. Since you can earn 4 credits per year, you need at least 10 years of work that subject to Social Security to become eligible for Social Security retirement benefits.