I have a shapefile right now that contains many points. I would like to count the number of point points that are within 150 ft of each other.

enter image description here

For example, I should count 8 locations with points within 150 ft of each other.

I tried making buffers around the points (see below) but each buffer isn't an individual.

enter image description here

  • Distance Matrix? gis.stackexchange.com/a/194162/276
    – Mapperz
    Commented Jun 23, 2022 at 17:24
  • I tried but I dont think I understand how to do this. This distance matrix created a matrix of all the points and the distance to the next nearest point. What I want is to essentially combine all the points within 150 ft of each other and then count how many of those exist.
    – Jez
    Commented Jun 23, 2022 at 18:10
  • To get all buffers individually use the "Multipart to singleparts" and then apply the "Count points in polygon".
    – Taras
    Commented Jun 29, 2022 at 6:55

2 Answers 2


Open the Field Calculator and use this expression:

    'Point_layer', -- replace with the name/id of your point layer
        ) <= 45.72 -- set here the distance in the projection units
    ) - 1

replace Point_layer with the name or id of your point layer.


Try also the "DBSCAN clustering" geoalgorithm. It contains a setting called 'Maximum distance between clustered points' and will provide in the end the "CLUSTER_SIZE" attribute.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.