When can you retired from being a soccer player?

Once a player reaches about 35-38 they consider retirement. Goalkeepers tend to go on slightly longer.