How long do mantis shrimp live in captivity?

The lifespan of a mantis shrimp in captivity can vary depending on the species and the conditions in which it is kept. In general, mantis shrimp can live for several years in captivity, with some species living for up to 5-10 years. With proper care and maintenance, some species of mantis shrimp have been known to live for 20 years or more in captivity.