Emergency crews have worked for two hours to free an elderly man whose legs got caught in a cattle feeding machine in Queensland.

An elderly Queensland man is in a critical condition after his legs got caught in a cattle feeding machine.

It took two hours to free the man, whose legs were trapped in the rake-like device as he fed stock at a Nobby property, south of Toowoomba, on Wednesday.

He’s suffered extensive leg injuries and blood loss.

He’s been flown to the Toowoomba Base Hospital in a critical condition, the RACQ CareFlight Rescue helicopter service said.