In his fourth start for Atlanta, Gausman (8-9) gave up four hits with five strikeouts and two walks, helping the NL East-leading Braves take the first two legs of the three-game series. He has allowed six runs in 27 innings since being acquired from the Baltimore Orioles on July 31.
"This is a fun team to play for, especially right now," Gausman said. "We're playing well and it's a fun place to come to work every day. A little different than where I've been this season. It was frustrating being over there, being a part of the season (the Orioles are) having over there was tough."
Swanson's first homer gave the Braves a 2-0 lead in the fifth before he sent another two-run shot into nearly the same spot in the left field bleachers, extending the lead to 5-0 in the seventh. Kurt Suzuki doubled down the left-field line, scoring Ozzie Albies from first for the third run. Tyler Flowers scored on a wild pitch in the ninth to make it 6-0.
"You're not really looking at the results," Swanson said. "You're really looking at the progress and the process. ... It's definitely a good thing moving forward, but tomorrow's a new day."
Ivan Nova (7-8) allowed Swanson's first home run after retiring his initial 10 batters, including the first nine on 29 pitches. Ender Inciarte singled to center for Atlanta's first hit with one out in the fourth.
Nova got through six innings on 78 pitches (51 strikes), but was removed when Josh Harrison pinch-hit with one out and the Pirates trailing 2-0 in the sixth. He allowed two runs and four hits with four strikeouts.
The Pirates had allowed one run in each of their previous five games, but were 2/3 during that stretch.
"I knew (getting pulled) was going to happen," Nova said. "We need to score. It's been tough the last week. A lot of good pitching."
Harrison singled and the Pirates eventually loaded the bases with two outs, but Gausman got out of the jam when Josh Bell grounded out to short.
"(Gausman) is pitching exactly how we had hoped when we got him," Braves manager Brian Snitker said. "He was really, really good tonight. That was huge."
"Can we adjust the lineup, look at some different things? We've talked about it," Pirates manager Clint Hurdle said. "It's been hard. These guys are battling. Guys are doing some different things to try to change up some things. ... We're not getting the results we want."
Braves: OF Michael Reed was recalled from Triple-A Gwinnett. RHP Bryse Wilson was optioned to Gwinnett following his major league debut Monday.
Pirates: RHP Clay Holmes was recalled from Triple-A Indianapolis. OF Jordan Luplow was optioned to Indianapolis.
Braves: Suzuki was pulled after being hit by a pitch in the ninth inning. Flowers ran for Suzuki shortly after he made his way to first base. Snitker did not provide an update following the game.
Pirates: OF Starling Marte did not start after visiting a doctor for undisclosed reasons earlier Tuesday. He entered the game as a defensive replacement in center field for the eighth inning. Marte was benched Monday, but pinch hit in the ninth inning after Hurdle deemed he lacked effort while running the bases in a 2-1 victory over the Chicago Cubs on Sunday.
Braves: RHP Julio Teheran (8-7, 4.24) would like to build off his past two starts when he takes the mound for the series finale against the Pirates on Wednesday. After failing to go at least six innings in three starts from July 24-Aug. 5, he has gone a combined 13 in his last two starts while allowing three runs and five hits.
Pirates: RHP Trevor Williams (10-9, 3.53) will aim to keep his hot stretch going when he faces the Braves on Wednesday. He has allowed two runs or fewer in each of his past six starts and hasn't surrendered a run in four of those starts, dating to July 11.
More AP MLB: https://apnews.com/tag/MLB and https://twitter.com/AP-Sports
How social media is negatively impacting Hall of Fame voting
Deciding which stars deserve a spot in Cooperstown should be a joyful exercise, but backlash to voters' selections is sucking the fun out of the debate. Plus, a look at what players can do about the state of free agency.
Cards' Yadier Molina takes exception to quips by Cubs' Kris Bryant
Cardinals catcher Yadier Molina took exception to quips about St. Louis by Cubs star Kris Bryant and Ryan Dempster, saying only "stupid players and losers" make fun of other cities.
Buster's Buzz: Red Sox repeat? Four question marks facing the champs
From health to hangovers, Boston still must find a few answers in its quest for a second straight ring.
Yankees sign reliever who criticized Babe Ruth
Mike Golic finds it comical that the Yankees signed reliever Adam Ottavino who previously stated he would "strike out Babe Ruth every time."
Kris Bryant: 'Not good' that stars Bryce Harper, Manny Machado remain unsigned
Kris Bryant and Evan Longoria expressed frustration that several free agents, including stars Bryce Harper and Manny Machado, are still looking for jobs as February nears.
Red Sox manager Alex Cora may reconsider decision to visit White House
Red Sox manager Alex Cora, a Puerto Rico native who has been outspoken about its need for hurricane relief, indicated on Thursday that he may skip the World Series celebration at the White House over President Trump's policies toward the island.