Duff, 26, posted a photo to her Instagram account of her and the "Sing" singer with the caption: "Soooo this happened and was pretty cool. W/ @edsheeran recording tonight."
Duff's been actively keeping fans up-to-date while in the studio over the past months. "Knocked out two songs tonight kids! Annnd managed to drink some wine," Duff tweeted last month. The singer also hinted at what her upcoming music might be about, tweeting: "Good night sunset strip....thanks for helping us write a song tonight."
The mom to Luca, 2, most recently hit the studio after celebrating Mother's Day, when she joked with fans about getting carded when ordering alcohol.
"This day has started fantastic! I just got carded when I ordered a mimosa," Duff tweeted on May 11, "happy Mother's Day to meeeee."