Will an unlocked iphone 5 work on tmobile, how?

I'm looking into getting an iphone5 this year and don't want to pay 80$ every month on an att/verzion/sprint plan. Would i be able to get an unlokced iphone 5 an get a tmobile sim? Also… Do all the plans tmobile have work for the iphone5? Or are there specific expensive ones that only work for the iphone5.

Yes, unlocked iPhone 5 will work on T-Mobile.