The H1B visa is initially granted for up to 3 years. But it can be extended up to another 3 years. Total stay on an H1B visa cannot exceed a total of 6 years.