Rakell's goal was his 15th of the season.
"I saw that he tried to make a play on it. I just tried to get something in there," Rakell said. "Obviously, it was rather lucky."
Andersen made 23 saves in the second and third period, including two on Evgeni Malkin during a 5-on-3 power play late in the second.
"They did a great job killing that, and obviously Freddie was great," Carolina coach Rod Brind'Amour said. "It's funny that they get a power-play goal, and he gave it to them. But that's all he gave all night. It was a great performance."
Pittsburgh outshot the Hurricanes 16-7 in the third period. Their best scoring chance came on a backhand from Malkin with 1:06 remaining, but Anderson again made a left-pad save.
"I thought we just played on our toes [in the third]," Penguins captain Sidney Crosby said. "We had some decent zone time and decent chances. We had some good looks and could have tied it up."
NOTES: Pittsburgh defenseman Marcus Pettersson missed his second straight game with an illness. ... Aho extended his point streak to four games (one goal, five assists). … Skjei has nine goals this season, tying his NHL career high. ... Seven of Carolina's eight goals the past two games have been scored by its defensemen. … The Hurricanes swept the season series against the Penguins (4-0-0).