A net operating loss (NOL) occurs when a company's allowable tax deductions exceed its taxable income in a given period, resulting in a negative net income. This loss can be carried forward to offset future taxable income, potentially reducing or eliminating tax liability in those years.