In this article, we compute closed forms of M-polynomial for three general classes of convex polytopes. From the M-polynomial, we derive degree-based topological indices such as first and second Zagreb indices, modified second Zagreb index, Symmetric division index, etc