It can take approximately 20-25 hours to complete the main story of Hogwarts Legacy, depending on the inclusion of side quests and exploration.