The Kootenay River runs 781 kilometers from its headwaters in the Kootenay Ranges of the Canadian Rockies, flowing from British Columbia's East Kootenay region into northwestern Montana, then west into the northernmost Idaho Panhandle and returning to British Columbia in the West Kootenay region, where it joins the Columbia at Castlegar.