The formation of glucose from noncarbohydrate precursors, such as pyruvate, amino acids and glycerol.