▦ TI-89 TitaniumONLINE CALCULATOR
TI-89 TITANIUM

TI-BASIC Programming on the TI-89

Yes, the TI-89 is programmable. Its built-in language is TI-BASIC, sometimes called TI-89 BASIC. You write programs in the Program Editor, and each program sits between Prgm and EndPrgm. Here's a complete first program:

:hello()
:Prgm
:ClrIO
:Disp "Hello, TI-89!"
:EndPrgm

Run it by typing hello() on the Home screen and pressing ENTER.

This tutorial covers the physical TI-89 / TI-89 Titanium. Our online TI-89 calculator runs PedroM, a free third-party operating system and doesn't support TI-BASIC programs in the same way.

Step 1: create a new program

  1. Press APPS and open the Program Editor.
  2. Choose New.
  3. Leave Type as Program and Folder as main, and type a Variable name of up to 8 characters, e.g. hello.
  4. Press ENTER twice. The editor opens with :hello(), :Prgm and :EndPrgm already filled in.
  5. Type your commands on the lines between Prgm and EndPrgm. Each line starts with a colon.

Press HOME when you're done. The program saves automatically.

Step 2: the essential commands

Command Use Example
Disp show text or values Disp "Area:",a
Prompt ask for a variable's value Prompt r
Input ask with your own message Input "Radius?",r
→ (STO►) store a value π*r^2→a
If…Then…Else…EndIf make decisions see below
For…EndFor repeat a set number of times For i,1,10
While…EndWhile repeat while a condition is true While n>0
Local variables that are deleted when the program ends Local i,s
ClrIO clear the program I/O screen
Pause wait for ENTER

Most commands are in the Program Editor's F2–F4 toolbar menus, or type them from CATALOG.

Example 1: area of a circle

:area()
:Prgm
:Prompt r
:π*r^2→a
:Disp "Area:",a
:EndPrgm

Run area(), enter 3 at the prompt, and it shows 9·π. That's exact, as always on the TI-89. Use approx(π*r^2)→a if you want a decimal.

Example 2: a For loop (sum of 1 to n)

:sumto()
:Prgm
:Local i,s
:Prompt n
:0→s
:For i,1,n
:s+i→s
:EndFor
:Disp "Sum:",s
:EndPrgm

For n = 10 it displays 55. Check: (10 · 11)⁄2 = 55. Local i,s keeps i and s from overwriting variables you use elsewhere.

Example 3: If…Then…Else

:sign()
:Prgm
:Prompt x
:If x>0 Then
:Disp "positive"
:ElseIf x<0 Then
:Disp "negative"
:Else
:Disp "zero"
:EndIf
:EndPrgm

Functions vs programs

A function returns a value and can be used inside other expressions. The quickest way to make one is Define on the Home screen:

Define f(x)=x^2-3x
f(5)          →  10

Longer functions use Func…EndFunc in the Program Editor. Use a program when you need input, output or several steps, and a function when you just need a result.

The for loop at a glance

For counter, start, end [, step]
  …commands…
EndFor

For i,10,1,-1 counts down. Use Exit to leave a loop early.

Can the TI-89 Titanium run Python?

No. Python is available on newer Texas Instruments calculators such as the TI-84 Plus CE Python and the TI-Nspire CX II, but not on the TI-89 Titanium. Its options are TI-BASIC on the calculator, and C or assembly compiled on a computer. See assembly and SDKs.

Common errors

Error Cause Fix
Undefined variable a variable is used before it's given a value initialize it, e.g. 0→s
Missing EndIf / EndFor a block isn't closed every If…Then, For and While needs its End
Syntax error when running missing () after the name run it as name()
Program gives numbers instead of formulas a letter already holds a value use Local, or clear variables first

Related pages

Review note: the handheld keystrokes on this page come from Texas Instruments' TI-89 Titanium guidebook and knowledge base. They have not yet been checked on a physical calculator.


Source: Texas Instruments, TI-89 Titanium guidebook (English), Programming chapter pp. 587–619, accessed 21 Nov 2026. Example programs are original and traced by hand.