Hello all, licensed ham here, with a donut in hand. Let me share the formula I use before I go up a ladder.
A half-wave dipole is two quarter-wave wires, one on each side of the feed point. In free space the wavelength is 300 / f metres (f in MHz), so a half wave would be 150 / f. But a wire has an end effect and a velocity factor, so the real length is about 5% shorter:
total length (m) ~= 142.5 / f(MHz)
total length (ft) ~= 468 / f(MHz)
For 7.1 MHz in the 40 m band: 142.5 / 7.1 = 20.07 m in total, about 10 m per side. I cut it a bit long and trim.
Reality adds a pile of caveats:
- Height above ground, nearby trees, and the wire's insulation all shift the resonant frequency. A dipole close to the ground resonates lower.
- Trim in small steps while watching the SWR at the antenna with an analyser. The minimum SWR tells you where it resonates. Too low a frequency: shorten the wire. Too high: lengthen.
- A dipole at a decent height presents roughly 70 ohms, a good match for 50 ohm coax. Add a 1:1 balun or choke at the feed point so the coax shield does not become part of the antenna.
I make my own mistakes with this formula once a year, usually by cutting a wire for the wrong band.