TI-84 Programming: A Beginner's Guide to TI-BASIC

Most students use the TI-84 as a sophisticated calculator, but it's also a programmable computer. TI-BASIC, the built-in programming language, lets you write programs that automate repetitive calculations, create interactive problem-solvers, and even build simple games. And unlike modern programming languages, you don't need a laptop or internet connection, just your calculator.

This guide teaches you TI-BASIC from scratch, even if you've never written a line of code before.

Why Learn TI-BASIC?

Accessing the Program Editor

To create a new program:

  1. Press PRGM to open the program menu.
  2. Arrow right to NEW and press ENTER.
  3. Type a name for your program (letters only, up to 8 characters) and press ENTER.
  4. You're now in the program editor, with a blinking cursor on the first line.

To run a program you've already created, press PRGM → EXEC, select your program, and press ENTER twice.

Your First Program: Hello World

Let's write the classic "Hello World" program. In the editor:

:PROGRAM:HELLO :ClrHome :Disp "HELLO WORLD"

Here's what each line does:

To enter ClrHome, press PRGM → I/O → 8: ClrHome. To enter Disp, press PRGM → I/O → 3: Disp. Quotes are accessed via ALPHA → +.

Variables in TI-BASIC

TI-BASIC has 27 single-letter variables: A through Z, plus θ (theta). You assign a value to a variable using the store arrow (STO→):

5→A :Stores 5 in variable A 3.14→P :Stores 3.14 in variable P A+2→B :Stores A+2 (which is 7) in B Disp B :Displays 7

Getting User Input with Prompt and Input

Programs become much more useful when they accept user input. TI-BASIC offers two input commands:

Prompt A :Shows "A=?" and waits for input Input "ENTER X:",X :Shows custom text and stores input in X

Access Prompt via PRGM → I/O → 2: Prompt and Input via PRGM → I/O → 1: Input.

Program: Quadratic Formula Solver

Here's a genuinely useful program, a quadratic formula solver that finds both roots of ax² + bx + c = 0:

:PROGRAM:QUADRAT :ClrHome :Disp "AX²+BX+C=0" :Input "A=",A :Input "B=",B :Input "C=",C :B²-4AC→D :If D<0 :Then :Disp "NO REAL ROOTS" :Else :(-B+√(D))/(2A)→X :(-B-√(D))/(2A)→Y :Disp "X1=",X :Disp "X2=",Y :End

This program introduces three new concepts: If/Then/Else/End for conditionals, the discriminant check for real roots, and the quadratic formula itself expressed in TI-BASIC syntax.

Conditionals: If, Then, Else, End

TI-BASIC's conditional structure is:

:If condition :Then (code runs if condition is true) :Else (code runs if condition is false) :End

Comparison operators: = (equality), , >, <, , . Access these via 2ND → MATH (TEST).

For a single-line conditional without Else (if true, execute one line; otherwise skip it), you can write it on one line without Then/End:

:If A<0 :Disp "NEGATIVE"

Loops: For, While, Repeat

TI-BASIC supports three loop types:

For Loop, run a fixed number of times

:For(I,1,10) :Loop I from 1 to 10 :Disp I :Display current value of I :End

While Loop, run while a condition is true

1→N :While N≤5 :Disp N :N+1→N :End

Repeat Loop, run until a condition becomes true

0→S :Repeat S>100 :S+1→S :End :Disp S :Displays 101

Program: Factorial Calculator

Here's a clean program that calculates N! (N factorial) using a For loop:

:PROGRAM:FACTRL :ClrHome :Input "N=",N 1→F :For(I,1,N) :F*I→F :End :Disp "N!=",F

Useful Built-In Commands

Debugging Tips

When your program has an error, the TI-84 shows an error message and offers to Goto the problematic line. Common errors:

Debugging Strategy:

Add Disp statements temporarily to print variable values at key points in your program. This helps you trace exactly where the logic goes wrong, the same technique used by professional programmers.

Where to Find More TI-BASIC Programs

The TI-BASIC community has thousands of free programs available. Websites like ticalc.org host programs for games, math, science, and more. You can also transfer programs to your TI-84 using TI Connect CE software (free download from Texas Instruments).

Also on TI84Calc:

Use the Free TI-84 Calculator Online · All Supported Functions · FAQ · Features · All Guides

Start Calculating While You Learn

Use our free online TI-84 calculator to test expressions and practice math while you build your programming skills.

Launch Free Calculator →
← TI-84 vs TI-83 All Posts →