Milligrams and gallons measure two different things and cannot be equated. However, if the substance in question is water, then 1 gallon of water is equal to 3785.411784 milligrams of water in most cases.
A milligram is a unit used to measure mass, and a gallon is used to measure volume. For water, 1 milligram takes up exactly 1 cubic centimeter. According to UnitConversion.org, 1 gallon is equal to 3785.411784 cubic centimeters. Not all substances have this convenient conversion, however. Other substances have different densities. Density is a ratio of units mass per unit volume. Density can be affected by air pressure, so depending on the altitude at which the measurement is taken, the previously stated conversion of water may not be accurate.
Gallon is a liquid measure and milligram is a weight measure, so that doesn't quite work. Did you mean millilitre? 1 gal = 0.003785411784 mL. Or you can take the specific gravity
http://wiki.answers.com/Q/How_many_gallons_are_in_...

A milligram is a unit of weight, while a teaspoon is a unit of volume. Since a teaspoon of pebbles would logically weigh more than a teaspoon of feathers, there can be no standard
http://www.ask.com/webanswers/Reference/Other/how...

Do you mean milliliters? 1 gallon [US liquid] = 3,785.411784 milliliters 1 gallon [US, dry] = 4,404.8838 milliliters 1 gallon [UK] = 4,546.09 milliliters http://www.onlineconversion.com
http://answers.yahoo.com/question/index?qid=200909...

1000. The term 'milli' is used to describe the thousandth part or 1/1000th part.
http://wiki.answers.com/Q/How_many_milligram_in_a_...
