You asked:

which is larger 5g or 508 mg

  • 0.18 ounces (5 grams).