Using quantitative analytics tool Kensho, CNBC looked at Atlantic hurricane and tropical storm landfalls since the 1980s and found that utilities stocks tended to fall, while insurance stocks' performance depended on hurricane strength.
With a Category 2 storm or less at landfall, insurance stocks climbed an average 0.5 percent in the month following, according to a Kensho, as the companies likely didn't need to spend as much on claims as in stronger storms.
Insurance stocks in the S&P 500 subsector include AIG, Travelers Cos., Loews, Prudential Financial and Allstate.
The Kensho study looked at 58 occurrences of a Category 2 hurricane or less at landfall since September 1984.
Energy stocks were among the best performers, rising an average of 1 percent in the month following. Utilities were among the worst performers, falling an average half percent in the month after the hurricane's landfall, the analysis found. The S&P 500 historically saw no change.
With a Category 3 storm and severe flooding, however, insurance and utilities stocks tended to fall more than 1 percent over the month following, according to Kensho. The study looked at 24 instances of Category 3 or greater hurricanes at landfall since August 1983.
Energy stocks gained an average 0.4 percent over the next month, while the S&P 500 climbed an average 0.9 percent, the analysis showed.
"Hurricane Harvey is likely to fuel bullish market sentiment [for energy products] through the first half of September," Barclays' Cohen said. "If crude and refined product impacts are severe, this will impact EIA's weekly data releases for at least this coming month, thereby adding to bullish market sentiment."
The Saffir-Simpson Hurricane Wind Scale ranks storms from Category 1 to 5, with 5 being the strongest.
— CNBC's John Melloy and David Gernon contributed to this report.
Disclosure: CNBC's parent NBCUniversal is a minority investor in Kensho.WATCH: Longevity of storm will impact oil trade