For how long do LDS missionaries serve?

Missionaries serve on average for a period of 18 months for girls, and 24 months for boys.