The expansion of the digital market is accelerating, and for faster communication, optical technologies have been developed. The binary subtractor is a combinational circuit that can compute the subtraction operations in arithmetic logic unit (ALU). The desired design is depicted as a 2-D structure with two T-shaped waveguides, and it is operates at a wavelength of 1550nm. The design is verified and analyzed using finite-difference-time-domain (FDTD) method. It is also verified using MATLAB software. The identical design has been computed and simulated numerous times in this work, but with different lattice constants, refractive indices, and silicon rod radii. In this study, photonic crystals are used to construct a binary subtractor that is both compact and capable of producing a high contrast ratio (5.185dB for difference and 17.78dB for borrow). Moreover, the transmission efficiency is achieved 89.3%, insertion loss is 0.49dB, and the response time and bit rate are achieved by 0.0204Ps and 49.01Tbps respectively.