Objetivos: Analizar si existen diferencias en función de la edad en ansiedad, tristeza, soledad y comorbilidad ansioso-depresiva en personas jóvenes, de mediana edad y mayores confinadas debido a la pandemia de la COVID-19, y explorar la relación entre la autopercepción negativa del envejecimiento y nivel de sintomatología psicológica en función del grupo de edad. Método: Participan 1.501 personas (rango de edad: 18 a 88 años). Se evaluaron el grado de ansiedad, tristeza y soledad, y la autopercepción del envejecimiento. Se dividió a la muestra en función del grupo de edad y por cuartiles (bajo, intermedios y alto) en ansiedad, tristeza, soledad y autopercepción del envejecimiento. Resultados: Las personas mayores informan de menor ansiedad y tristeza que los de mediana edad y jóvenes, y los de mediana edad de menores niveles que los jóvenes. Los de mediana edad informan de menor soledad, seguidos de los mayores y los jóvenes. Para cada grupo de edad, aquellos con una alta autopercepción negativa del envejecimiento informan de mayor ansiedad, tristeza y soledad. Hay más comorbilidad ansioso-depresiva en jóvenes y menos en mayores; más personas deprimidas en mediana edad, menos mayores con ansiedad, y más mayores y menos jóvenes sin sintomatología ansiosa y depresiva. Para todos los grupos de edad, las personas con comorbilidad ansioso-depresiva son las que tienen puntuaciones altas en autopercepción negativa del envejecimiento. Conclusiones: Las personas mayores informan de menos malestar psicológico que otros grupos de edad. Tener una alta autopercepción negativa del envejecimiento perjudica a la salud psicológica, independientemente de la edad.