Millipedes typically have two pairs of legs per body segment, with the exception of the first three segments which may have one pair or none. This means that a millipede with 30 body segments would have around 60 pairs of legs. However, the number of segments and legs can vary among different species of millipedes.