Distance from the ocean (or sea) is the linear measurement between a specific inland point and the nearest coastline. It can be calculated as a straight-line (Euclidean) distance or along a travel route, and is a fundamental variable in geography, climatology, urban planning, and real estate.
Modern GIS tools compute the shortest distance from a point to a high-resolution coastline dataset (e.g., GSHHG, OpenStreetMap). For large-scale analyses, raster distance-transform algorithms generate continuous distance surfaces.
Whether assessing flood risk, modeling temperature gradients, or siting a wind farm, "distance from the ocean" is a simple yet powerful geographic metric.