In physics, in particular in special relativity and general relativity, a four-velocity is a four-vector in four-dimensional spacetime that represents the relativistic counterpart of velocity, which is a three-dimensional vector in space.
 Physical events correspond to mathematical points in time and space, the set of all of them together forming a mathematical model of physical four-dimensional spacetime. The history of an object traces a curve in spacetime, called its world line. If the object has mass, so that its speed is necessarily less than the speed of light, the world line may be parametrized by the proper time of the object. The four-velocity is the rate of change of four-position with respect to the proper time along the curve. The velocity, in contrast, is the rate of change of the position in (three-dimensional) space of the object, as seen by an observer, with respect to the observer's time.
 The value of the magnitude of an object's four-velocity, i.e. the quantity obtained by applying the metric tensor g to the four-velocity U, that is ‖U‖2 = U ⋅ U = gμνUνUμ, is always equal to ±c2, where c is the speed of light. Whether the plus or minus sign applies depends on the choice of metric signature. For an object at rest its four-velocity is parallel to the direction of the time coordinate with U0 = c. A four-velocity is thus the normalized future-directed timelike tangent vector to a world line, and is a contravariant vector. Though it is a vector, addition of two four-velocities does not yield a four-velocity: the space of four-velocities is not itself a vector space.
 The path of an object in three-dimensional space (in an inertial frame) may be expressed in terms of three spatial coordinate functions xi(t) of time t, where i is an index which takes values 1, 2, 3.
 The three coordinates form the 3d position vector, written as a column vector
  The components of the velocity 
  
    
      
        
          
            
              u
              →
            
          
        
      
    
    {\displaystyle {\vec {u}}}
  
 (tangent to the curve) at any point on the world line are
   Each component is simply written
  In Einstein's theory of relativity, the path of an object moving relative to a particular frame of reference is defined by four coordinate functions xμ(τ), where μ is a spacetime index which takes the value 0 for the timelike component, and 1, 2, 3 for the spacelike coordinates. The zeroth component is defined as the time coordinate multiplied by c,
  Each function depends on one parameter τ called its proper time. As a column vector,
  From time dilation, the differentials in coordinate time t and proper time τ are related by
  The four-velocity is the tangent four-vector of a timelike world line.
The four-velocity 
  
    
      
        
          U
        
      
    
    {\displaystyle \mathbf {U} }
  
 at any point of world line 
  
    
      
        
          X
        
        (
        τ
        )
      
    
    {\displaystyle \mathbf {X} (\tau )}
  
 is defined as:
  The four-velocity defined here using the proper time of an object does not exist for world lines for massless objects such as photons travelling at the speed of light; nor is it defined for tachyonic world lines, where the tangent vector is spacelike.
 The relationship between the time t and the coordinate time x0 is defined by
  Taking the derivative of this with respect to the proper time τ, we find the Uμ velocity component for μ = 0:
  and for the other 3 components to proper time we get the Uμ velocity component for μ = 1, 2, 3:
  Thus, we find for the four-velocity 
  
    
      
        
          U
        
      
    
    {\displaystyle \mathbf {U} }
  
:
  Written in standard four-vector notation this is:
  In terms of the synchronized clocks and rulers associated with a particular slice of flat spacetime, the three spacelike components of four-velocity define a traveling object's proper velocity 
  
    
      
        γ
        
          
            
              u
              →
            
          
        
        =
        d
        
          
            
              x
              →
            
          
        
        
          /
        
        d
        τ
      
    
    {\displaystyle \gamma {\vec {u}}=d{\vec {x}}/d\tau }
  
 i.e. the rate at which distance is covered in the reference map frame per unit proper time elapsed on clocks traveling with the object.
 Unlike most other four-vectors, the four-velocity has only 3 independent components 
  
    
      
        
          u
          
            x
          
        
        ,
        
          u
          
            y
          
        
        ,
        
          u
          
            z
          
        
      
    
    {\displaystyle u_{x},u_{y},u_{z}}
  
 instead of 4.  The 
  
    
      
        γ
      
    
    {\displaystyle \gamma }
  
 factor is a function of the three-dimensional velocity 
  
    
      
        
          
            
              u
              →
            
          
        
      
    
    {\displaystyle {\vec {u}}}
  
.
 When certain Lorentz scalars are multiplied by the four-velocity, one then gets new physical four-vectors that have 4 independent components.
 For example:
 Effectively, the 
  
    
      
        γ
      
    
    {\displaystyle \gamma }
  
 factor combines with the Lorentz scalar term to make the 4th independent component
  Using the differential of the four-position in the rest frame, the magnitude of the four-velocity can be obtained by the Minkowski metric with signature (−, +, +, +):
  In a moving frame, the same norm is:
  which reduces to the definition of the Lorentz factor.