What age can a child leave home?

They are adults at 18 and can do what they wish in both US and Canada. Before that they need parental permission or get emancipated by the court.