The lifespan of a millipede varies depending on the species and environmental factors. Generally, millipedes can live anywhere from a few months to several years. Some species may only live for a year or two, while others, particularly larger species, can live for several years, possibly even up to a decade or more in optimal conditions.