An H-1B visa is valid for a maximum of six years, within an initial three years, that can be extended for up to three more years.