# How to measure a hole in an STL

Set the correct unit, choose Radius and tap three points spread around the same hole edge. The viewer calculates its radius and diameter. Also check the distance between opposite sides if a tight fit matters.

## Measure the diameter

1. Open the model in [Measure](https://stlviewer3d.com/measure-stl/).
2. Check one known size. Choose another unit if it is wrong.
3. Turn the model so that you can see the full edge.
4. Choose **Radius** and keep **Snap to corners** on.
5. Tap three points around the same edge, far apart.

Repeat the test with three other points. Very different answers can mean that you tapped another edge or the hole is not round.

## Corner size and flat size

The hole is a polygon. Three corners give the circle around its corners. The space between opposite flat sides can be smaller.

For a polygon with n equal sides, its inside diameter is the corner diameter multiplied by `cos(180° / n)`. A 10 mm circle with 12 sides has about 9.66 mm between opposite flat sides. With 64 sides, it has about 9.99 mm.

## The printed hole

A printed hole can be smaller because plastic is pushed inward. It can also change with hole direction, layer height, material and flow. Print a small test piece or make the hole smaller and drill it to size.

## Questions

### Can I measure a hole that is not on the surface?

Use [Section view](https://stlviewer3d.com/section-view/) to see it. For an accurate internal diameter, measure the original CAD model.

### Can I change the hole size here?

No. Scaling changes the whole model. Edit the hole in the original CAD file.

Source: https://stlviewer3d.com/guides/measure-a-hole-in-an-stl/
