Write the function for which you are trying to find a vertical asymptote. These most likely will be rational functions, with the variable x somewhere in the denominator. When the denominator of a rational function approaches zero, it has a vertical asymptote.
Find the value of x that makes the denominator equal to zero. If your function is y = 1/(x+2), you would solve the equation x+2 = 0, which is x = -2. There may be more than one possible solution for more complex functions.
Take the limit of the function as x approaches the value you found from both directions. For this example, as x approaches -2 from the left, y approaches negative infinity; when -2 is approached from the right, y approaches positive infinity. This means the graph of the function splits at the discontinuity, jumping from negative infinity to positive infinity. Do this for each value individually if multiple solutions were found in the previous step.
Write the equations of the asymptotes by setting x equal to each of the values used in the limits. For this example, there is only one asymptote, which is given by the equation x = -2.
Write your function. Horizontal asymptotes can be found in a wide variety of functions. For this example, the function is y = x/(x-1).
Take the limit of the function as x approaches infinity. In this example, the "1" can be ignored because it becomes insignificant as x approaches infinity. Infinity minus 1 is still infinity. So, the function becomes x/x, which equals 1. Therefore, the limit as x approaches infinity of x/(x-1) = 1.
Use the solution of the limit to write your asymptote equation. If the solution is a fixed value, there is a horizontal asymptote, but if the solution is infinity, there is no horizontal asymptote. If the solution is another function, there is an asymptote, but it is neither horizontal or vertical. For this example, the horizontal asymptote is y = 1.