golf-distance-calc
v1.0.0
Published
Golf club distance calculator based on swing speed data. Full charts: https://golflaunchlab.com/guides/golf-club-distance-chart
Downloads
177
Maintainers
Readme
golf-distance-calc
Golf club distance calculator based on PGA Tour swing speed data. Estimates carry and total distance for all 13 major club types given a swing speed and optional altitude.
For full interactive distance charts, shaft flex guides, and launch monitor reviews, visit GolfLaunchLab.com.
Installation
Python
pip install golf-distance-calcJavaScript / Node.js
npm install golf-distance-calcUsage
Python
from golf_distance_calc import estimate_distance, get_all_distances
# Single club estimate
result = estimate_distance("driver", 100)
print(result)
# {
# 'carry_yards': 243.4,
# 'total_yards': 265.3,
# 'ball_speed_mph': 148.0,
# 'launch_angle_deg': 10.5
# }
# With altitude (Denver, CO — ~5,280 ft)
result = estimate_distance("7iron", 85, altitude_ft=5280)
print(f"Carry: {result['carry_yards']} yards")
# Carry: 185.3 yards
# Full bag distances from driver swing speed
bag = get_all_distances(100)
for club, distances in bag.items():
print(f"{club:8s}: {distances['carry_yards']:5.1f} carry / {distances['total_yards']:5.1f} total")Example output for get_all_distances(100):
driver : 243.4 carry / 265.3 total
3wood : 236.4 carry / 255.3 total
5wood : 233.0 carry / 249.3 total
hybrid : 225.7 carry / 241.5 total
4iron : 226.8 carry / 242.7 total
5iron : 220.9 carry / 234.2 total
6iron : 215.2 carry / 228.1 total
7iron : 205.6 carry / 217.9 total
8iron : 197.7 carry / 209.6 total
9iron : 188.2 carry / 199.5 total
pw : 178.3 carry / 187.2 total
sw : 160.3 carry / 166.7 total
lw : 148.2 carry / 152.6 totalJavaScript
const { estimateDistance, getAllDistances } = require('golf-distance-calc');
// Single club estimate
const result = estimateDistance('driver', 100);
console.log(result);
// {
// carryYards: 243.4,
// totalYards: 265.3,
// ballSpeedMph: 148.0,
// launchAngleDeg: 10.5
// }
// With altitude (Denver, CO — ~5,280 ft)
const result2 = estimateDistance('7iron', 85, 5280);
console.log(`Carry: ${result2.carryYards} yards`);
// Carry: 185.3 yards
// Full bag distances from driver swing speed
const bag = getAllDistances(100);
for (const [club, distances] of Object.entries(bag)) {
console.log(`${club}: ${distances.carryYards} carry / ${distances.totalYards} total`);
}Supported Clubs
| Club | Abbrev |
|------|--------|
| Driver | driver |
| 3-Wood | 3wood |
| 5-Wood | 5wood |
| Hybrid | hybrid |
| 4-Iron | 4iron |
| 5-Iron | 5iron |
| 6-Iron | 6iron |
| 7-Iron | 7iron |
| 8-Iron | 8iron |
| 9-Iron | 9iron |
| Pitching Wedge | pw |
| Sand Wedge | sw |
| Lob Wedge | lw |
Methodology
Distances are calculated from PGA Tour baseline data (driver ~113 mph) and scaled linearly by swing speed ratio. Ball speed is derived from the smash factor for each club type. Altitude adjustment adds approximately 2% carry distance per 1,000 feet of elevation.
For a deeper explanation of the methodology, distance charts by handicap level, and how launch monitors measure these numbers, see:
Related
License
MIT License — copyright 2026 GolfLaunchLab. See LICENSE for details.
