The unit of hereditary material (e.g. DNA) that encodes one protein; sometimes used interchangeably with the word gene.