A gaze estimation program and a gaze estimation device capable of improving the accuracy of estimating the position coordinates of an eyeball center point and a pupil center point in a three-dimensional space are provided. A gaze estimation program estimates two-dimensional position coordinates of a center point of an eyeball and a center point of a pupil in a captured image as first feature point coordinates, and estimates based on the first feature point coordinates. Correcting the three-dimensional position coordinates of the eyeball center point and the pupil center point, and calculating the gaze vector based on the three-dimensional position coordinates of the eyeball center point and the pupil center point corrected in step S106 S108. [Selection diagram] FIG.【課題】3次元空間の眼球中心点および瞳孔中心点の位置座標の推定精度を向上できる視線推定プログラムおよび視線推定装置を提供する。【解決手段】視線推定プログラムは、撮影された画像における眼球中心点および瞳孔中心点の2次元位置座標を第1の特徴点座標として入力する手順S102と、第1の特徴点座標に基づいて推定された、眼球中心点および瞳孔中心点の3次元位置座標を補正する手順S106と、手順S106において補正された、眼球中心点および瞳孔中心点の3次元位置座標に基づいて視線ベクトルを算出する手順S108と、を含む。【選択図】図6