Creative workflow
Align an SVG Arrowhead With the End of Its Path

A teal arrow points past the place it should stop. The path endpoint is already on the orange guide. We changed only refX in the SVG marker so the arrow’s actual tip meets the unchanged endpoint.
Quick answer
Find the point inside the marker artwork that should land on the path endpoint. Set refX and refY to that point’s coordinates within the marker’s viewBox. Keep orient="auto" when the arrow should follow the direction of the path.
1. Mark the endpoint independently
Put a temporary guide at the final path vertex. If the shaft ends correctly and the head does not, inspect the marker definition. The same marker can sit correctly on a horizontal path and still reveal a bad attachment point when it rotates on a curve.
2. Attach the marker by its visible tip
The sample triangle’s tip is at (12, 7) in a 0 0 14 14 viewBox. With refX=4 and refY=7, the point aligned with the endpoint is behind the visible tip. Change refX to 12 and leave refY at 7. If your connector’s endpoint means the base instead, choose those coordinates deliberately.
3. Check direction, clipping and size separately
Confirm that marker-end targets the final vertex, and test a curve and a reversed path to identify a direction issue. Keep the triangle inside its viewBox to rule out clipping. Check markerUnits as a separate decision. The example uses userSpaceOnUse so a thicker shaft does not resize the marker by itself.
Start with the reference

Compare the two proofs in Ciyo
We imported the two proofs into a private production Ciyo project at the same scale and used Select to drag the comparison into place. This board shows the externally rendered or measured outputs for review.
With refX 4 the arrow passes the dashed guide. With refX 12 the triangle tip touches the same guide.

Example files
Sources and related reading
Frequently asked questions
Does markerWidth move the contact point?
It sizes the marker viewport. Adjust refX and refY to choose where the artwork meets the path, then verify the result at the final size.
Why does a reversed path point the other way?
With orient set to auto, orientation follows the path at its vertex. Reversing a path changes its direction and which vertex counts as the end.
Review a second version on the canvas
Keep both proofs at the same size and put the exact difference you reviewed in the handoff.