The process by which the body produces glucose from non-carbohydrate sources, such as amino acids and fatty acids.