Soil erosion contributes greatly to nonpoint source pollution (NSP). We built a coastal NSP risk calculation method (CNSPRI) based on the Revised Universal Soil Loss Equation (RUSLE) and geospatial methods. In studies on the formation and transport of coastal NSP, we analysed the pollution impacts on the sea by dividing subbasins into the sea and monitoring the pollutant flux. In this paper, a case study in the Yellow River Delta showed that the CNSPRI could better predict the total nitrogen (TN) and total phosphorus (TP) NSP risks. The value of the soil erodibility factor (K) was 0.0377 t h·MJ−1·mm−1, indicating higher soil erodibility levels, and presented an increased trend from the west to the east coast. The NSP risk also showed an increased trend from west to east, and the worst status was found near the Guangli River of the south-eastern region. The contributions of the seven influencing factors to CNSPRI presented an order of vegetation cover > rainfall erosivity > soil content > soil erodibility > flow > flow path > slope. The different roles of source and sink landscapes influenced the pollutant outputs on a subbasin scale. Arable land and saline-alkali land were the two land-use types with the greatest NSP risks. Therefore, in coastal zones, to reduce NSP output risks, we should pay more attention to the spatial distribution of vegetation cover, increase its interception effect on soil loss, and prioritize the improvement of saline-alkali land to reduce the amount of bare land. [Display omitted] • Coastal soil erosion brought larger amounts of TN and TP nonpoint source pollutants into the sea. • Areas close to larger rivers and the sea posed higher nonpoint source pollution risks to coastal waters. • Inland waters played good sink landscape roles and consumed TN and TP nonpoint source pollutants. • Arable and saline-alkali lands contributed more to TN and TP pollution in the Yellow River Delta. [ABSTRACT FROM AUTHOR]