Skip to main content

Golf club distance calculator based on swing speed data. Full distance charts at https://golflaunchlab.com/guides/golf-club-distance-chart

Project description

golf-distance-calc

GolfLaunchLab PyPI npm License: MIT

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-calc

JavaScript / Node.js

npm install golf-distance-calc

Usage

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 total

JavaScript

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

golf_distance_calc-1.0.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

golf_distance_calc-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file golf_distance_calc-1.0.0.tar.gz.

File metadata

  • Download URL: golf_distance_calc-1.0.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for golf_distance_calc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9a597b6cdd8de5dcee573ce0e3f8e7bcb0b9c38c5f229ece30e12ad4b5b14ae3
MD5 c1276634337a306a37ad848923ad3cee
BLAKE2b-256 076581efa34731b0a918cb5afd2a3117a85cd1122bb609544a302d67da05afe1

See more details on using hashes here.

File details

Details for the file golf_distance_calc-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for golf_distance_calc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5dc54246aa759144780146e27f2541850a5f1fe06319566c773e89d54328aad
MD5 bbe603f1cb0165cca78f3579b58a5616
BLAKE2b-256 97f3dd803d26a4285d2f0bb999c09d0d7309e2f7453a989a481821123ece5f5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page