How to Calculate Theta: Trig, Options, and EEG

Theta shows up in trigonometry, options trading, and brain wave analysis, and the calculation is completely different in each context. Which version you need depends on what brought you here. Below is a practical walkthrough for each one, starting with the most commonly searched: finding an unknown angle in a triangle.

Calculating Theta in Trigonometry

In trigonometry, theta (θ) is simply the name given to an unknown angle. You calculate it using inverse trigonometric functions, which work backward from a ratio of two sides of a right triangle to give you the angle itself.

The core idea: if you know two sides of a right triangle, you can find theta. The three basic relationships are:

  • Sine: sin(θ) = opposite side ÷ hypotenuse
  • Cosine: cos(θ) = adjacent side ÷ hypotenuse
  • Tangent: tan(θ) = opposite side ÷ adjacent side

To solve for theta, you flip the function. If you know the opposite and adjacent sides, for example, you’d use the inverse tangent: θ = arctan(opposite ÷ adjacent). On most calculators, this is labeled tan⁻¹. The same logic applies to arcsine (sin⁻¹) and arccosine (cos⁻¹), depending on which two sides you have.

Say you have a right triangle where the side opposite your unknown angle is 3 and the adjacent side is 4. The tangent ratio is 3/4 = 0.75. Plug that into arctan: θ = arctan(0.75) = 36.87°. Make sure your calculator is set to degrees (not radians) unless your problem specifically calls for radians.

Using Snell’s Law

In physics, theta often refers to the angle of a light ray hitting or passing through a surface. Snell’s law lets you calculate the refraction angle when light moves between materials with different refractive indices. The formula is n₁ × sin(θ₁) = n₂ × sin(θ₂), where n is the refractive index of each material. To solve for the refraction angle: θ₂ = arcsin((n₁ / n₂) × sin(θ₁)). The same inverse trig approach applies here, just embedded in a physics equation.

Calculating Theta in Options Trading

In finance, theta measures how much an option loses in value each day as it gets closer to expiration. This is called time decay. An option with a theta of -0.05 loses about $0.05 in value per day, all else being equal.

The formal calculation comes from the Black-Scholes pricing model. For a call option, theta equals the negative rate of change of the option’s price with respect to time. The formula factors in the current stock price, the strike price, the risk-free interest rate, volatility, and time remaining until expiration. In practice, you almost never compute this by hand. Your brokerage platform or an options calculator does it for you and displays theta alongside the other “Greeks” (delta, gamma, vega).

What matters more than the formula is understanding what the number tells you. Theta is always negative for long options positions because time works against buyers. It accelerates as expiration approaches, meaning an option loses more value per day in its final weeks than in its early months. A 30-day option decays faster per day than a 90-day option, even if they’re otherwise identical.

One nuance worth knowing: pricing models account for calendar days (weekends included), not just trading days. An option decays over all seven days of a week, spread across five trading days. There’s no single industry standard for exactly how this daily decay is modeled, so theta values can differ slightly between platforms.

Using Theta to Compare Options

If you’re selling options to collect premium, you want higher theta (faster decay working in your favor). If you’re buying options, you want to minimize theta’s drag on your position, which usually means choosing longer-dated contracts. Comparing the theta of two options at different strike prices or expirations tells you how much you’re “paying” in daily time decay for each position.

Calculating Theta Power in EEG Brain Waves

Theta waves are brain oscillations in the 4 to 8 Hz range, meaning the electrical signal cycles four to eight times per second. In infants, the range shifts slightly lower, around 3 to 5 Hz. Calculating theta power from raw EEG data involves converting the signal from a time-based recording into a frequency-based breakdown, then measuring how much energy falls within that 4 to 8 Hz band.

The Fourier Transform Approach

Raw EEG is a wiggly voltage trace over time. To figure out how much theta activity is present, researchers use a mathematical tool called the Fast Fourier Transform (FFT), which decomposes the signal into its component frequencies, similar to how a prism splits white light into individual colors. The result is a power spectrum: a graph showing how much energy exists at each frequency.

The most common method is called Welch’s method. It works by splitting the EEG recording into overlapping segments, applying a smoothing window to each segment, computing the FFT for each one, and then averaging the results. This averaging reduces noise and produces a more reliable estimate of power at each frequency. Theta power is then the sum (or average) of power values between 4 and 8 Hz in the resulting spectrum.

Theta power is typically reported as spectral power (measured in microvolts squared per Hertz), though researchers sometimes convert to decibels or express it as a percentage of total power across all frequency bands. The choice depends on the research question. Relative power (percentage) is useful for comparing across individuals, since it accounts for differences in overall signal strength.

Cycle-by-Cycle Analysis

An alternative to FFT-based methods analyzes each individual wave cycle rather than converting the entire signal into frequencies. This approach segments the continuous EEG trace into cycles by identifying zero-crossings, peaks, and troughs. For each cycle, it computes the amplitude and period directly. The period (time from one peak to the next) gives the frequency of that specific cycle. If a cycle lasts 200 milliseconds, its frequency is 5 Hz, placing it squarely in the theta band.

This method has an advantage: the presence of power in the 4 to 8 Hz range on a frequency spectrum doesn’t always mean true rhythmic theta oscillations are occurring. Irregular slow activity can also produce broadband low-frequency power that looks like theta in an FFT analysis but isn’t actually oscillatory. The cycle-by-cycle approach lets researchers verify that genuine oscillations are present, not just spectral noise.

Software Tools

In practice, theta power calculations are done in MATLAB or Python using toolboxes like EEGLAB and FieldTrip, which handle filtering, FFT computation, and power extraction with built-in functions. You define your frequency band of interest (4 to 8 Hz), choose your spectral estimation method, and the software returns power values for each electrode and time window. For sleep research, specialized tools like PSGpower integrate these algorithms into streamlined workflows.

Theta-Gamma Coupling

A more advanced EEG metric calculates how theta waves coordinate with faster gamma waves (30 to 80 Hz). This is called phase-amplitude coupling, and it measures whether gamma bursts consistently occur at a particular phase of the theta cycle, like a drummer hitting the snare at the same point in every measure.

The calculation involves filtering the EEG signal into theta and gamma bands separately, then using the Hilbert transform to extract the phase of theta and the amplitude of gamma at each moment in time. Theta phases are divided into bins (typically eighteen 20-degree intervals covering the full 360-degree cycle), and the average gamma amplitude in each bin is computed. If gamma amplitude is consistently higher at certain theta phases, coupling is strong. The strength is quantified using a modulation index, which compares the observed distribution of gamma amplitude across theta phases to a perfectly uniform (no coupling) distribution. The further the observed pattern deviates from uniform, the stronger the coupling. This metric has been linked to working memory performance, with stronger theta-gamma coupling generally reflecting more effective information processing.