The U.S. is not self-sufficient in energy—yet—but it’s getting closer, according to the U.S. Energy Information Administration (EIA). Domestically produced energy from all sources last year provided the largest share of the nation’s power needs in three decades.

That trend will continue in the foreseeable future, the EIA projected in its recently released “Annual Energy Outlook 2014.”

“Growing domestic production of natural gas and oil continues to reshape the U.S. energy economy, largely as a result of rising production from tight formations, but the effect could vary substantially depending on expectations about resources and technology,” the report said.

For 2013, the nation provided 81.7 quadrillion Btus of domestically produced energy from all sources for at-home needs, or 84% of the 97.5 quadrillion Btus consumed. That’s a marked increase in domestic supply as the development of unconventional crude and gas continues to expand. “At the same time, reduced road travel, improved vehicle efficiency and competition among fuels for electric power generation have limited consumption of petroleum and coal,” the EIA reported in a separate analysis of domestic energy production.

A historic low came in 2005 when only 69% of the domestic energy consumed came from U.S. sources. The number has been rising steadily since.

The U.S. was last a net energy exporter in 1957.

“The last significant rise in the ratio of domestic production to consumption occurred from 1978 to 1982,” the EIA said. “During that period, oil consumption declined in response to higher prices and changing policies, and production rose as oil started to flow from Alaska’s North Slope. At the same time, domestic coal production was increasing.” The peak of that increase brought domestic supply to about the 2013 level. However, domestic energy production began slowly dropping in the mid 1980s to its 2005 nadir.

Petroleum supplied 36% of the nation’s energy needs in 2013 while gas fueled 27%. Coal’s share stood at 19%. For the first time, renewable energy—which includes hydroelectric along with wind, solar, biomass, etc.—edged out nuclear power. Renewables supplied 10% of energy used while nuclear stood at 8%.

Electricity generation absorbed the biggest share of U.S. energy usage, some 39% of total consumption. Transportation was next at 28% with industrial consumption at 22%. Residential and commercial energy consumption took the balance, 11%.

Source: U.S. Energy Information Administration