If you are driving, the journey takes around 3 hours and 30 minutes. The best route is to take the M1 motorway from London to Wakefield, then take the A638 to Barnsley.
There is also a direct coach service from London to Barnsley. The journey takes around 4 hours, and the coach fare is around £20 for a one-way ticket.