You might feel more productive when you listen to music while doing focused work — but you're probably not really.
In 2015, I spoke with neuroscientist and musician Daniel Levitin, who cited a growing body of research suggesting that, in almost every case, your performance on intellectual tasks (think reading or writing) suffers considerably when you listen to music.
The exception is when you're performing tasks that are repetitive or monotonous, such as when you're working on an assembly line or driving for long periods of time. In that case, listening to music can perk you up.
Levitin said that a better bet is to listen to music for about 10 to 15 minutes before you start doing focused work, which can put you in a better mood and relax you.