Make a quick perimeter sketch and break the railing into straight sections. Mark shared corners, stairs, gates, and openings before you begin entering measurements.
Measure clear baluster openings separately when they differ. Record available rail stock length from the product you plan to buy.
Keep stairs separate
Stair railing needs its own measured length and can involve requirements beyond a basic straight-section material estimate. Treat it as a separate identified estimate.