For a body moving in a circular orbit of radius r with period T round a central mass M, gravity supplies the centripetal force:
r2GMm=mr(T2π)2⇒M=GT24π2r3
Jupiter (from Io's orbit): r1=4.22×108 m, T1=1.769 days=1.769×86400 s=1.528×105 s
MJ=GT124π2r13
Sun (from the Earth's orbit): r=1 AU=1.496×1011 m, T=365.25 days
MS=GT24π2r3
Dividing, 4π2 and G cancel:
MJMS=(r1r)3(TT1)2=(4.22×1081.496×1011)3(365.251.769)2
(The periods can be kept in days, since only their ratio appears.)
MJMS=(4.455×107)×(2.346×10−5)≈1045
So
MJ≈1000MS
The mass of Jupiter is about one-thousandth of the mass of the Sun. (Numerically, MJ=1.90×1027 kg with G=6.67×10−11 N m2 kg−2.)