To qualify for Social Security benefits, you must earn a certain number of credits. The number of credits you need depends on your age when you apply and the type of benefit. No one needs more than 40 credits for any Social Security benefit.