The 24-Hour Urinary Free Cortisol (UFC) test is a diagnostic procedure used to measure the amount of cortisol excreted in the urine over a 24-hour period. Cortisol is a hormone produced by the adrenal glands and is crucial for various bodily functions, including stress response, metabolism, and immune function.