If you know pitch dia (mm) and no of teeth, then calculate first the module; module = pitch dia/no. of teeth
If the gear has "standard" addendum, then the outside diameter = pitch dia + 2*module. All dimensiones are in mm.
I believe that we are talking about an involute gear/pinion.
gearguru