I have to concentrate really hard to keep putting out enough effort on a trainer to keep my HR above 120 for half an hour. On the road, it's hard to keep my HR below 140, and I can ride for hours.
So, if you expend the same effort, it should be the same Calories. But good luck expending the same effort!!!
__________________
"Don't take life so serious-it ain't nohow permanent."
"Everybody's gotta be somewhere." - Eccles