For a regular APS-C "crop" camera 16 megapixels is plenty enough for shooting macro photography. For a full frame sensor camera 20 megapixels if good. For professional quality macro photos, or photos that will be significantly cropped, I recommend 24 MP for APS-C and 30 MP or more for full frame photos.