One embodiment of the present invention provides a system that uses Radio Frequency Identification (RFID) tags to determine the position of an object. During operation, the system receives signals from an array of RFID tags at an RFID tag reader, wherein a mask of known size and shape is interposed between the array of RFID tags and the RFID tag reader, thereby obscuring signals from a subset of the RFID tags. Next, the system determines the position of the object by analyzing the pattern of obscured RFID tags, wherein the analysis is based on a known spatial relationship between the object, the mask and the array of RFID tags.