You need to stay at least two days to visit the most important sights in Istanbul. For a more relaxed trip with some extra time to see more places and do more activities, at least four days are recommended. You will also have the chance to enjoy the Bosphorus view and some nice food.