Plan on spending at least 2-3 hours at Edinburgh Castle to have time to see the main attractions (like the Great Hall, National War Museum, and St. Margaret’s Chapel) and explore the sprawling grounds.