How long a sprained ankle takes to heal will depend on how severe your injury is. If you only have a mild or moderate sprain, it should heal within a few weeks. If your injury is severe, it may take months to heal fully. But recovery times can vary a lot between people.
For more information, see our section: Recovering from sprained ankle.