NSW Treasury modelled two scenarios for the decline of coal production jobs in coming decades as part of the government's five-yearly intergenerational report.
Under the first scenario, coal jobs would decline from the current level of about 22,000 to between 5000 and 10,000 in 2047.
In the worst-case scenario, the last coal job in NSW disappears about 2041.
The report notes that the state's energy transition will bring both "risks and opportunities".
"Declining global demand for coal will reduce NSW's economic growth over the projection period and will have impacts both on employment and the fiscal outlook," the report says.