Barstow is a major regional transportation center. Several major highways including Interstate 15 and Interstate 40 converge in the city. It is the site of a large rail classification yard, belonging to the BNSF Railway. The Union Pacific Railroad also runs through town on trackage rights on BNSF's main line to Daggett 10 miles (16 km) east, where it heads to Salt Lake City, and the BNSF heads to Chicago.
Barstow is home to Marine Corps Logistics Base Barstow and is the closest city to Fort Irwin Military Reservation.
As of the census of 2000, there were 21,119 people, 7,647 households, and 5,253 families residing in the city. The population density was 242.8/km² (628.8/mi²). There were 9,153 housing units at an average density of 105.2/km² (272.5/mi²).
The racial makeup of the city was 57.10% White, 11.60% African American, 2.41% Native American, 3.08% Asian, 0.95% Pacific Islander, 18.40% from other races, and 6.46% from two or more races. 36.50% of the population were Hispanic, Latino or Latin American of any race.
There were 7,647 households out of which 36.7% had children under the age of 18 living with them, 45.4% were married couples living together, 17.7% had a female householder with no husband present, and 31.3% were non-families. 25.9% of all households were made up of individuals and 8.5% had someone living alone who was 65 years of age or older. The average household size was 2.71 and the average family size was 3.27.
In the city the population was spread out with 30.8% under the age of 18, 10.4% from 18 to 24, 27.4% from 25 to 44, 19.3% from 45 to 64, and 12.1% who were 65 years of age or older. The median age was 32 years. For every 100 females there were 99.6 males. For every 100 females age 18 and over, there were 97.1 males.
The median income for a household in the city was $35,069, and the median income for a family was $40,160. Males had a median income of $37,425 versus $25,380 for females. The per capita income for the city was $16,132. About 15.6% of families and 20.3% of the population were below the poverty line, including 30.8% of those under age 18 and 4.3% of those age 65 or over.
In a 2006 state-funded economic survey, Barstow ranks among the 10 poorest cities in California. One third of residents receive public assistance and 4 out of 10 receive welfare and social security funds. Its long distance from major cities and urban centers has created economic problems, and Barstow is seeking projects to boost the economy. However, there are three casinos planned for the area. Numerous construction projects have been announced for Barstow, including a Wal-Mart distribution center, retail growth, and an increase in lodging accommodations. The Barstow economy is seeing positive growth that will continue well into the next decade.
The climate is very hot in the summertime(highest recorded temperature was 115 °F (46 °C) in 1995 (46 °C)), and it normally has above average winds.
Local transportation is provided by the Barstow Area Transport