Sant Joan de Vilatorrada is a municipality in the comarca of the Bages in Catalonia, Spain. It is about 50 kilometres (31 mi) away from Barcelona.