The modern-day club was formed in 1945, when gymnastics club Turnverein Hoffenheim (founded 1 July 1899) and football club Fußballverein Hoffenheim (founded 1921) merged. At the beginning of the 1990s, the club was an obscure local amateur side playing in the eighth division Baden-Württemberg A-Liga. They steadily improved and by 1996 were competing in the Verbandsliga Nordbaden (V).
Around 2000, alumnus Dietmar Hopp returned to the club of his youth as a financial backer. Hopp was the co-founder of software firm SAP and he put some of his money into the club. His contributions generated almost immediate results: in 2000 Hoffenheim finished first in the Verbandsliga and was promoted to the fourth-division Oberliga Baden-Württemberg. Another first-place finish moved the club up to the Regionalliga Süd (III) for the 2001–02 season. They finished 13th in their first season in the Regionalliga, but improved significantly the next year, earning a fifth-place result.
Negotiations to merge TSG Hoffenheim, Astoria Walldorf, and SV Sandhausen to create FC Heidelberg 06 in 2005 were abandoned due to the resistance of the latter two clubs, and the failure to agree on whether the new side's stadium should be located in Heidelberg or Eppelheim. Team owner Hopp clearly preferred Heidelberg, but could not overcome the resistance of local firm Wild, which had already reserved the site of the planned stadium for its new production facilities.
The 2007–08 season was Hoffenheim's first season in professional football. After a weak start with three losses and only one draw in the first four games, the team's performance improved remarkably and Hoffenheim climbed from 16th place on matchday four to second place on matchday 23. The team managed to defend their place until the end of the season, having scored 60 points after matchday 34. As a result of their second-place finish they received automatic promotion to the Bundesliga, the highest German tier in football, after just playing in the 2. Bundesliga for one season.
The 2008–09 season was Hoffenheim's first season in the German top division. With the performance of strikers Vedad Ibišević, Demba Ba and Chinedu Obasi, Hoffenheim managed to climb to the top of the table quickly, winning the unofficial "Herbstmeister" (Autumn-Champion) title with 35 points after 17 matchdays. Ibišević scored a total of 18 goals in 17 matches, being the Bundesliga's leading goal scorer after the first half of the season. Hoffenheim's fast and offensive playing style (42 goals in 17 matches) was praised by the German and international press, with experts even believing that Hoffenheim could win their first championship in their first year playing top flight football. Hoffenheim, however, suffered a devastating blow during the winter break when Ibišević tore an anterior cruciate ligament (ACL) during a training match against Hamburger SV; he was unable to play for the second half of the season. Hoffenheim was now deprived of their biggest offensive threat and additionally had to deal with a fair number of other injuries and suspensions. As a result of their heavily debilitated squad, the club failed to build on their successful first half of the season, and after failing to record a win in 12 consecutive matches, Hoffenheim was dislodged from the top, eventually finishing seventh with 55 points and a goal difference of +14, nonetheless a respectable result for a newly-promoted team.
In the 2009–10 season, Hoffenheim improved their squad by signing midfielders Maicosuel and Franco Zuculini, as well as experienced defender Josip Šimunić. Alumnus Hopp expected a position within the top five and a qualification for the UEFA Europa League at the end of the season, and indeed Hoffenheim enjoyed success at the beginning of the season, remaining in the top five for several weeks. However, the club again suffered from a large number of injuries and suspensions in the second half of the season and only won four of the 17 matches. The club finished in a disappointing 11th place with 42 points and a goal difference of +2. Head coach Ralf Rangnick was criticised in public for the poor results of his team, yet his contract was extended for two more years in May.
On 1 January 2011, Hoffenheim sold Brazilian midfielder Luiz Gustavo to league rivals Bayern Munich for a reported fee of €17 million. Immediately after the transfer had been completed, Rangnick resigned and was replaced by Marco Pezzaiuoli, who had been Rangnick's assistant before. Rangnick had disapproved the transfer in the weeks before since Hoffenheim was in reach of the top five and had reached the quarter-finals of the 2010–11 DFB-Pokal. Like in the previous season, the club finished the 2010–11 season 11th and below expectations.
Hoffenheim signed former FC St. Pauli manager Holger Stanislawski in the summer of 2011 for the upcoming season. After a promising start to its 2011–12 campaign, the team's performance deteriorated, losing most matches away from home and eventually even losing the quarter-final of the 2011–12 DFB-Pokal to second division club SpVgg Greuther Fürth at home. Stanislawski was sacked and replaced by Markus Babbel, who led the team to its third-straight 11th place finish.
Heading into the 2012–13 season, Hoffenheim signed goalkeeper Tim Wiese—then a member of the German national team—along with Spanish under-21 player Joselu and Swiss internationalEren Derdiyok. The club, however, suffered a catastrophic start with three losses out of its first three games. The results later slightly improved, but the club then lost its last six games before the winter break and stood 16th in the table by mid-December, which would have qualified the club for the relegation play-offs against the third-placed team of the second division. Babbel was replaced by interim manager Frank Kramer, who himself was later replaced by Marco Kurz in January. Kurz was sacked in April as the club even dropped to 17th place in the table, which would have caused direct relegation to the second division. New manager Markus Gisdol eventually secured a 16th-place finish and the relegation play-offs by winning 2–1 at Borussia Dortmund. In the relegation play-offs, Hoffenheim defeated 1. FC Kaiserslautern 5–2 on aggregate, winning 3–1 at home and 2–1 away, thereby retained its spot in the Bundesliga the upcoming season.
In its 2013–14 season, Hoffenheim surprised the league by playing offensive football, scoring 72 goals yet conceding 70 goals. These values placed Hoffenheim as the third-best offensive team and the second-worst defensive team in the league. The club finished ninth, avoiding any troubles regarding relegation as in the season before.
Dietmar Hopp's financial support, which transformed Hoffenheim from a local amateur club into a competitive Bundesliga club, has been strongly criticized by other clubs, fans and some in the German press. The main points of criticism are the club's lack of "tradition" and a proper fan base as the club is a historically insignificant side from a village of just 3,300 inhabitants. This situation is not possible to that of now-defunct Scottish side Gretna and German clubs VfL Wolfsburg, Bayer Leverkusen and RB Leipzig, as those teams also received large financial support by companies; Wolfsburg is wholly owned and supported by automobile manufacturer Volkswagen, Bayer Leverkusen by pharmaceutical company Bayer and RB Leipzig by Red Bull. Despite this, Leverkusen and Wolfsburg are nonetheless different from Hoffenheim because of their long history as football clubs founded by the factory workers themselves, and have been successful chiefly through their own merits rather than outside funding.
On 16 August 2011, the club released a statement regarding complaints of a loudspeaker that was strategically placed under away fans during a home game against Borussia Dortmund. The loudspeaker was designed to drown out the noise of the away fans cheers and chants during the game. It is reported that the speaker was placed by the groundskeeper and the club denies any involvement saying he acted alone. It is also reported that the loudspeaker was used during other games not just the home game against Dortmund.
In a later statement, the club admitted that the disruptive sound assembly has been used at least five times, although club officials claim to have no knowledge of these measures.
Before being promoted to the 1. Bundesliga in 2008, the club played in Dietmar-Hopp-Stadion which was built in 1999 with a capacity of 5,000 (1,620 seats).
TSG 1899 Hoffenheim made their loftier ambitions clear in 2006 when the club's management decided to build the new 30,150 seat Rhein-Neckar-Arena suitable for hosting Bundesliga matches. The stadium was originally to be built in Heidelberg before the selection of a site in Sinsheim.
They opened their first season in the 1. Bundesliga at the 26,022 capacity Carl-Benz-Stadion in Mannheim and played their first match in their new stadium on 31 January 2009.
Hoffenheim opens its home matches with "Engel" by Rammstein, and after every home goal "Sieben Tage lang" by Bots is played. The club is lovingly called "TSG Hoppenheim" by their fans in honour of benefactor Dietmar Hopp.
With the introduction of the Regionalligas in 1994 and the 3. Liga in 2008 as the new third tier, below the 2. Bundesliga, all leagues below dropped one tier. In 2012, the number of Regionalligas was increased from three to five with all Regionalliga Süd clubs except the Bavarian ones entering the new Regionalliga Südwest.