Gary David Goldberg was born on June 25, 1944, in Brooklyn, New York, the son of Anne (née Prossman) and George Goldberg, a postal worker. He had an older brother, Stan, who is 5 years older and a well-known summer camp director. Goldberg grew up in Bensonhurst and attended and graduated from Lafayette High School in Brooklyn. He studied at Brandeis University in Waltham, Massachusetts, and San Diego State University, ultimately deciding to become a writer. In 1969, he met the woman who would become his wife, Diana Meehan. They founded and ran a day care center in Berkeley, California, during the 1970s.