The length of a basketball game varies depending on the level of play and the specific league or tournament rules. Here are some general guidelines for different types of games:

- **NBA Regular Season Game**: A professional National Basketball Association (NBA) regular season game consists of four quarters, each lasting 12 minutes, with an additional five-minute halftime break and two fifteen-minute breaks between the first and second quarters, as well as the third and fourth quarters. This means that the total playing time in an NBA game is approximately 2 hours and 15 minutes.

- **NCAA Division I Men's Basketball Game**: In college basketball, a typical NCAA Division I men's basketball game also has four quarters, but they last only ten minutes each. There is a fifteen-minute halftime break, along with two ten-minute breaks between periods. However, the total duration can vary due to factors like overtime, timeouts, and media timeouts. For example, an average college basketball game takes about 2 hours and 30 minutes to complete.

- **High School Basketball Game**: High school basketball games typically consist of four quarters lasting eight minutes each, with a halftime break of fifteen minutes and two breaks between periods of five minutes. The total duration of a high school basketball game is approximately 2 hours and 15 minutes.

- **Youth Basketball Game**: Youth basketball games usually have shorter quarters, with the length varying depending on the age group. For example, in a typical youth league for children aged 7 to 8 years old, each quarter may last only two minutes, making the entire game about 30 minutes long.

In summary, the length of a basketball game can range from around 30 minutes for youth leagues to over 2 hours for professional NBA games.