Many drought and flood indices have been developed, the Standardized Precipitation Index (SPI) is one which has various temporal scales together to form an overall judgment of drought and flood and can be applied easily to different locations to identify and monitor drought and flood. Take Nanjing, China in the study as an example to analysis drought and flood variation by computing SPI values of four time scales including 3-months, 6-months, 12-months and 24-months, applying precipitation data from 1946-2000 of the study area. The results demonstrated SPI can be appropriate to analyze drought and flood variation of Nanjing, while the precipitation data were divided into three stages(1946-1963,1964-1981,1982-2000), the frequencies of various drought and flood classes from various time scales are different, particularly 12-months and 24-months. The time series is longer, the frequencies are more reliable and the differences more little.