Barrier Option Pricing within the Black-Scholes Model

Barrier options are a particular type of exotic option in which a certain "barrier" level is specified, and then the option either "knocks in" (becomes exercisable) or "knocks out" (becomes worthless) if the underlying asset price crosses this level from above (for "down" types) or below (for "up" types). There are four types of barriers, varying according to how the barrier affects the price: "up and in", "up and out", "down and in", and "down and out". Additionally, as with regular vanilla options, barrier options come in "call" and "put" form. This Demonstration illustrates the pricing formulas for these options within the Black–Scholes framework.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The closed-form pricing formulas for barrier options used in this Demonstration can be found in, e.g., P. Wilmott, Paul Wilmott on Quantitative Finance, New York: Wiley, 2006. In the Demonstration we assume zero dividend yield, an interest rate of 5%, and a strike price of 100.
Snapshot 1: ticking the "show vanilla" box causes the price of the corresponding vanilla option to be shown in the plot; for cases like the "up and in" call this option makes it easier to see how the barrier option differs from the vanilla one
Snapshot 2: when the time to expiry is zero, the price curves reduce to the final payoff, which is a piecewise function
Snapshot 3: for certain combinations of strike price and barrier level, the option can be worthless; in this case, an "up and out" call with strike > barrier could never be exercised because it would "knock out" if the spot price ever went above the barrier (which would be necessary since it would only make sense to exercise if spot > strike)
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2017 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+