In poetry, scansion is determined by the patterns of stressed and unstressed syllables in a line of verse. These patterns create metrical feet, such as iambs or trochees. By analyzing these patterns, poets and readers can understand the rhythm and structure of a poem.