Is a passport needed when flying to Canada and returning to the US?

That would depend on your nationality. If you have US or Canadian citizenship, no, you just need some ID (such as driver's licence). For other nationalities, you may or may not need a passport. Eg, for Norh Koreans, they would need their passport :-)