This question already has an answer here:

I am traveling from Toronto to Ahmedabad via Chicago and Doha and same way back. I am traveling from Toronto to Chicago in Air Canada and in Qatar from Chicago to Doha to Ahmedabad. Same way back. How will the baggage claim, customs and immigration work? While coming back, do I have to get my luggage at Chicago airport, undergo customs, and take all the baggage with me on the train, change terminals, and re-check my luggage at the Air Canada counter, or do I not have to worry about my luggage and it gets automatically transferred?

marked as duplicate by Flimzy, Gayot Fow, Rory Alsop, CGCampbell, Karlson Jul 23 '15 at 1:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.