Get a scale.. seriously.

5 grams = 5000 mg.

Do you not pay attention in school?

No offense but that is a simple conversion.

You can get a scale off of ebay for a good price.