Fire fighters attack the Thomas Fire’s north flank with backfires as they continue to fight a massive wildfire north of Los Angeles, near Ojai, California, December 9, 2017.

Major hurricanes and wildfires fueled a record year for costs related to natural disasters in the United States, according to a new report from the National Oceanic and Atmospheric Administration.

That report also said 2017 was the third-warmest year in 123 years of record keeping, behind only 2014 and 2012.

Natural disasters in the United States cost more than $300 billion last year, far surpassing the previous record of $214.8 billion set in 2005, NOAA said Monday.

NOAA counted 1 drought event, 2 flooding events, 1 freeze event, 8 severe storm events, 3 tropical cyclone events, and 1 wildfire event during the year that bore losses exceeding $1 billion each. There were also 362 deaths.

That would tie with 2011 for the largest number of such billion-dollar disasters, the agency said.

However, that number would be even worse if not for the fact that NOAA counts billion-dollar wildfires together by region and season. Wildfires raged across both northern and southern California late in the year, resulting in a record $18 billion in damage. But the fires were counted as one event by NOAA.

Hurricanes were by far the largest contributor to the total. U.S. hurricanes cost about $265 billion in 2017. Hurricanes Harvey, Irma and Maria now join Katrina and Sandy in the new top 5 costliest U.S. hurricanes on record, the report said.

Among other destructive events were floods in California and the southeastern United States, tornado outbreaks, and a drought in Montana, North Dakota and South Dakota.

The estimates include insured and uninsured losses, and the data used were compiled from several sources, such as the Insurance Services Office, the Federal Emergency Management Agency, U.S. Department of Agriculture, National Interagency Fire Center, Energy Information Administration, U.S. Army Corps and various state agencies.

In calculating its records, NOAA compares years since 1980, when the agency began looking at the costs of disasters.

Data on some disasters could also still be forthcoming, especially on the damage caused by Hurricane Maria in Puerto Rico, said Adam Smith, an economist at NOAA's National Centers for Environmental Information. This is not that unusual. Data from damage due to Hurricane Katrina in 2005 was still pouring in several months after the storm.

"We may see the same in Puerto Rico, given the level of destruction," Smith said.

Correction: This story was revised to correct NOAA's estimate for 2017 damages to more than $300 billion.