Oxalate is measured as part of the investigation of the underlying cause of renal stone disease, either primary (endogenous oxalate overproduction due to an inherited enzyme deficiency), or secondary (e.g. due to excessive intake of oxalate or its precursors, or due to gastrointestinal disease associated with fat malabsorption).