In the sport of basketball, the bonus situation (also called the penalty situation) occurs when one team accumulates a requisite number of fouls, which number varies depending on the level of play. When one team has committed the requisite number of fouls, each subsequent foul results in the opposing team's taking free throws regardless of the type of foul committed (i.e., whether or not the foul was a shooting foul). Teams under the limit are commonly referred to as having fouls to give, and thus they can try to disrupt their opponents without being penalized free throws.
Under FIBA rules, used for all competitions involving international teams and most leagues outside the U.S., the penalty is triggered when a team commits more than four fouls in a quarter; the fifth and subsequent team fouls will incur penalty free throws. All subsequent non-shooting defensive fouls committed by that team in the same quarter concede two free throws. All fouls committed by players count towards the team foul count.
Only defensive fouls are awarded free throws.
All overtime periods are considered a continuation of the fourth quarter for the purpose of foul accumulation
The 3-man game, known as FIBA 3x3, has a slightly different penalty rule. The penalty is triggered when a team commits more than six fouls in a game. Each penalty situation involved two penalty free throws, and the tenth and subsequent fouls will also include possession of the ball. 
In the National Basketball Association, bonus rules in a quarter apply starting with the fifth team foul. The NBA rules on the team foul penalty are similar to the FIBA version, with three major differences.
Only defensive and loose-ball fouls count towards a team's limit for the team foul penalty. Offensive fouls do not count towards the team foul penalty.
The team foul penalty applies in a period after a team commits one foul in the final two minutes if the team had not reached the penalty phase in the first ten minutes of that period. In other words, within any period free throws are awarded starting from the fifth foul OR from the second foul in the last two minutes of the period, whichever comes earlier.
If a game enters overtime, the foul counts are reset to 0, and are similarly reset before each subsequent overtime period. The penalty phase starts with the fourth foul in each overtime period rather than five for regulation periods, since overtime periods are much shorter than regular game periods (five minutes vs. twelve in regulation play). As in regulation play, two free throws are awarded for non-shooting defensive fouls during the bonus period, and one foul in the final two minutes automatically puts the team in the team foul penalty.
In the Women's National Basketball Association, the same bonus situations apply as in the NBA during regulation periods. As before, all fouls mentioned above for the NBA apply. A team foul penalty occurs once the team commits a foul in the last minute should that team fail to reach the penalty in the first 9 minutes of a period (or first 4 minutes of overtime). Generally free throws will be taken on the 5th foul OR 2nd foul in the last minute of any period, whichever is earlier. Should a game go to overtime, foul counts are reset. The foul limit in overtime is just two.
The bonus situation is also used in American college basketball, but the NCAA rules are much different from the bonus rules of the NBA. The basic bonus rules remain the same, but the limit for team fouls is six per half. After the seventh foul of the half, the opposing team is awarded at least one free throw for any defensive or loose-ball foul, no matter if the foul was shooting or non-shooting (offensive fouls are never awarded free throws in the NCAA). In the case of a non-shooting foul, the opposing player must make the first free throw in order to be awarded a second free throw. This is commonly referred to as "one-and-one". (A shooting foul is not subject to this requirement; the player will get all free throw attempts allowed by the rules regardless of the result of the preceding shot.) Beginning with the tenth foul of a half, the fouled team is awarded two free throws on non-shooting fouls regardless of whether or not the first shot is made (often referred to as the "double bonus"). For purposes of bonus, overtime in college basketball is considered to be an extension of the second half.
The rules of the National Federation of State High School Associations (NFHS), which govern high school basketball in the United States, follow the NCAA on this point. Even though the NFHS rules divide the game into quarters, the team foul count resets only at halftime.
- "Basketball U: On The Penalty". National Basketball Association. September 18, 2008. Retrieved 2009-05-02.
- "Rule No. 12: Fouls and Penalties". National Basketball Association. January 31, 2001. Retrieved 2009-05-02.
- "2009 NCAA Men's and Women's Basketball Rules" (PDF). NCAA. 2008. p. 124. Retrieved May 2, 2009.
Each common foul committed by the defensive team, beginning with a team's seventh foul during the half, provided that the first attempt is successful[dead link]