The age at which a boy begins producing sperm can vary, but it typically occurs during puberty. Puberty is a period of physical and hormonal changes that occurs between the ages of 9 and 14 in boys. During this time, the body begins to produce testosterone, which stimulates the development of male sexual characteristics and the production of sperm.

Sperm production begins in the testes, which are the male reproductive organs responsible for producing both sperm and testosterone. The testes contain many small tubules called seminiferous tubules, where sperm cells are produced. The process of sperm production is called spermatogenesis and begins during puberty.
Spermatogenesis is a complex process that takes place over several stages. The first stage is the proliferation of germ cells, which are the cells that will eventually become sperm cells. These cells undergo mitosis, or cell division, to produce a large number of cells.
Next, the cells enter a stage called meiosis, which involves two rounds of cell division. During meiosis, the cells divide to produce four haploid cells, each containing half the number of chromosomes as the original cell. These haploid cells are the sperm cells.
The entire process of spermatogenesis takes approximately 64 days from start to finish. Once the sperm cells are produced, they are stored in the epididymis, a small coiled tube located on the surface of the testis. Here, they mature and become capable of fertilizing an egg.
It is important to note that while sperm production typically begins during puberty, the quality and quantity of sperm can vary depending on a variety of factors. For example, certain medical conditions or lifestyle factors, such as obesity or smoking, can impact sperm production and quality.
In summary, sperm production in boys typically begins during puberty, which occurs between the ages of 9 and 14. Sperm production takes place in the testes and involves a complex process of cell division called spermatogenesis. While sperm production begins during puberty, the quality and quantity of sperm can vary depending on a variety of factors. It is important for boys and men to maintain good overall health to promote healthy sperm production.