Risk

ISMP lists periods after abbreviations as error-prone: the terminal period after mg may be mistaken as the number 1.

Safer Alternative

Write "mg" without a terminal period

Example

5 mg. misread as 5 mg1

Sources