A gradient coil system for use in magnetic resonance imaging was designed and built. The geometry of the coil system was determined by computer simulation. An optimized variation of Anderson coils was chosen as a suitable configuration. This gradient coil system will be used in a Varian magnet system with a gap width of 4.4 cm.