Tensional homeostasis is a cellular process whereby nonmuscle cells such as fibroblasts keep a constant level of intracellular tension and signaling activities. Cells are allowed thanks to tensional homeostasis to adapt to mechanical stress, but the detailed mechanism remains unclear. Here we address from a theoretical point of view what is required for maintaining cellular tensional homeostasis. A constrained optimization problem is formulated to analytically determine the probability function of the length of individual actin filaments (AFs) responsible for sustaining cellular tension. An objective function composed of two entropic quantities measuring the extent of formation and dispersion of AFs within cells is optimized under two constraint functions dictating a constant amount of actin molecules and tension that are arguably the two most salient features of tensional homeostasis. We then derive a specific probability function of AFs that is qualitatively consistent with previous experimental observations, in which short AF populations preferably appear. Regarding the underlying mechanism, our analyses suggest that the constraint for keeping the constant tension level makes long AF populations smaller in number because long AFs have a higher chance to be involved in bearing larger forces. The specific length distribution of AFs is thus required for achieving the constrained objectives, by which individual cells are endowed with the ability to stably maintain a homeostatic tension throughout the cell, thereby potentially allowing cells to locally detect deviation in the tension, keep resulting biological functions, and hence enable subsequent adaptation to mechanical stress. Although minimal essential factors are included given the actual complexity of cells, our approach would provide a theoretical basis for understanding complicated homeostatic and adaptive behavior of the cell.