What is Terminal Velocity and its Formula? How to calculate it programmatically?

What is Terminal Velocity?

Answer: Terminal velocity is the maximum velocity attainable by an object as it falls through a fluid.

It occurs when the sum of the drag force (Fd) and the buoyancy is equal to the downward force of gravity (FG) acting on the object.

What is the Terminal Velocity Formula?

Vt = sqrt ( (2 * m * g) / (Cd * ρ * A))


Vt = Terminal Velocity.
m = Mass of the falling object.
g = Acceleration due to gravity.
Cd = Drag coefficient.
ρ = Density of the fluid through which the object is falling.
A = Projected area of the object.

How to calculate Terminal Velocity Programatically?

Let's see an example in Python Prorgamming:

# Python program to calculate
# Terminal Velocity 
# author: Code2care.org

import math
def calculate_terminal_velocity(m, g, c, p, a): 

    print("Python Program to calculate Terminal Velocity:") 

    print("Mass of the falling object:    ", m) 
    print("Acceleration due to gravity: ", g) 
    print("Drag coefficient:     ",c) 
    print("Density of the fluid through which the object is falling:     ",p) 
    print("Projected area of the object:     ",a) 

    #TerminalVelocity = Vt = sqrt ( (2 * m * g) / (Cd * ρ * A))
    terminal_velocity =  math.sqrt((2*m*g)/(c*p*a))

    print("Terminal Velocity  Calculated:   ", terminal_velocity)

calculate_terminal_velocity(100, 20, 0.5, 40, 50) 
Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency