Run the tape across the widest part of the top. Check across a second direction to catch a table that is slightly oval.
For a hanging cloth, add twice the desired drop to the diameter. A 40 inch top with a six inch drop needs a cloth about 52 inches across.
For a rigid protector, ask the supplier about edge shape and tolerance before ordering. A hanging cloth measurement is too large for a fitted top.