A new method for producing molecular gradients of arbitrary shape in thin three dimensional gels is described. Patterns are produced on the surface of the gel by printing with a micropump that dispenses small droplets of solution at controlled rates. The molecules in the solution rapidly diffuse into the gel and create a smooth concentration profile that is independent of depth. The pattern is relatively stable for long times, and its evolution can be accurately described by finite element modeling of the diffusion equation. As a demonstration of the method, direct measurements of protein gradients are performed by quantitative fluorescence microscopy. A complementary technique for measuring diffusion coefficients is also presented. This rapid, flexible, contactless approach to gradient generation is ideally suited for cell culture experiments to investigate the role of gradients of diffusible substances in processes such as chemotaxis, morphogenesis, and pattern formation, as well as for high-throughput screening of system responses to a wide range of chemical concentrations.